if(text_part)
{
const Sides &margin = text_part->get_margin();
- const GL::Font &font = *style->get_font();
+ const GL::Font &font = style->get_font();
unsigned en_width = static_cast<unsigned>(font.get_string_width("n")*style->get_font_size());
geom.w = max(geom.w, 10*en_width+margin.left+margin.right);