]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/entry.cpp
Return a reference from Style::get_font
[libs/gltk.git] / source / entry.cpp
index 261cf8b938dd88f5d0adeb1eb64b682a66458759..a0df8cb9e423c1372c56997be5cf1ba74db50c9b 100644 (file)
@@ -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<unsigned>(font.get_string_width("n")*style->get_font_size());
                geom.w = max(geom.w, 10*en_width+margin.left+margin.right);