if(items_part)
{
const Sides &margin = items_part->get_margin();
+ const GL::Font &font = style->get_font();
float font_size = style->get_font_size();
unsigned max_w = 0;
for(vector<string>::iterator i=items.begin(); i!=items.end(); ++i)
{
- unsigned w = static_cast<unsigned>(style->get_font()->get_string_width(*i)*font_size);
+ unsigned w = static_cast<unsigned>(font.get_string_width(*i)*font_size);
max_w = max(max_w, w);
}
items_part = style->get_part("items");
- const GL::Font &font = *style->get_font();
+ const GL::Font &font = style->get_font();
row_height = static_cast<unsigned>((font.get_ascent()-font.get_descent())*style->get_font_size());
check_view_range();