]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/button.cpp
Make autosize_special const and add a const autosize overload
[libs/gltk.git] / source / button.cpp
index 8fd2de6cb02e2abbb15d4b41035d71b551e88ebf..57e5fa42f57981cfb3398576b5a6563b3d5b4843 100644 (file)
@@ -16,7 +16,7 @@ Button::Button(const std::string &t):
        set_text(t);
 }
 
-void Button::autosize_special(const Part &part, Geometry &ageom)
+void Button::autosize_special(const Part &part, Geometry &ageom) const
 {
        if(part.get_name()=="text")
                text.autosize(part, ageom);