X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdropdown.cpp;h=cab6d918e536210190a256b67b7965c0851c2f1b;hb=4ab33a06c9f8a85b193d7db8bc6ee9b8895aab09;hp=d1a7bd7e1433490e364a8d7cf2ec356c809ce0a7;hpb=11d1b67a9180a0e468b56e355fbe0c88d104ef72;p=libs%2Fgltk.git diff --git a/source/dropdown.cpp b/source/dropdown.cpp index d1a7bd7..cab6d91 100644 --- a/source/dropdown.cpp +++ b/source/dropdown.cpp @@ -31,9 +31,9 @@ void Dropdown::autosize() if(const Part *text_part = style->get_part("text")) { const Sides &margin = text_part->get_margin(); - const GL::Font *font = style->get_font(); + const GL::Font &font = style->get_font(); float font_size = style->get_font_size(); - unsigned line_height = static_cast((font->get_ascent()-font->get_descent())*font_size); + unsigned line_height = static_cast((font.get_ascent()-font.get_descent())*font_size); geom.h = max(geom.h, line_height+margin.top+margin.bottom); } }