]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/entry.cpp
Make autosize_special const and add a const autosize overload
[libs/gltk.git] / source / entry.cpp
index 12eff06ae4ffbc542e3b80726242b60ea03ee4ee..1198bdee52b34d3e2057232e8b12e4c65c6791a7 100644 (file)
@@ -28,7 +28,7 @@ Entry::Entry(const string &t):
        set_text(t);
 }
 
-void Entry::autosize_special(const Part &part, Geometry &ageom)
+void Entry::autosize_special(const Part &part, Geometry &ageom) const
 {
        if(part.get_name()=="text")
        {
@@ -102,7 +102,7 @@ void Entry::set_multiline(bool m)
 void Entry::rebuild_special(const Part &part)
 {
        if(part.get_name()=="text")
-               text.build(part, geom, first_row, part_cache);
+               text.build(part, state, geom, first_row, part_cache);
        else if(part.get_name()=="cursor")
        {
                const Graphic *graphic = part.get_graphic(state);