X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flist.cpp;h=e1f39b7dc8ecaa67db27c9212ada54ef24199593;hb=11d1b67a9180a0e468b56e355fbe0c88d104ef72;hp=a1803694a23633cd0a3911bafeb007e2eef1f141;hpb=b8bfaf14b5c68428cf34c0e8514e03cd0614ee5b;p=libs%2Fgltk.git diff --git a/source/list.cpp b/source/list.cpp index a180369..e1f39b7 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -40,7 +40,7 @@ void List::autosize_rows(unsigned n) if(items_part) { const Sides &margin = items_part->get_margin(); - float font_size = style->get_font()->get_default_size(); + float font_size = style->get_font_size(); unsigned max_w = 0; for(vector::iterator i=items.begin(); i!=items.end(); ++i) @@ -223,7 +223,7 @@ void List::on_style_change() items_part = style->get_part("items"); const GL::Font &font = *style->get_font(); - row_height = static_cast((font.get_ascent()-font.get_descent())*font.get_default_size()); + row_height = static_cast((font.get_ascent()-font.get_descent())*style->get_font_size()); check_view_range(); }