X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fentry.cpp;h=a0df8cb9e423c1372c56997be5cf1ba74db50c9b;hb=4ab33a06c9f8a85b193d7db8bc6ee9b8895aab09;hp=261cf8b938dd88f5d0adeb1eb64b682a66458759;hpb=11d1b67a9180a0e468b56e355fbe0c88d104ef72;p=libs%2Fgltk.git diff --git a/source/entry.cpp b/source/entry.cpp index 261cf8b..a0df8cb 100644 --- a/source/entry.cpp +++ b/source/entry.cpp @@ -35,7 +35,7 @@ void Entry::autosize() 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(font.get_string_width("n")*style->get_font_size()); geom.w = max(geom.w, 10*en_width+margin.left+margin.right);