]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/label.cpp
Defer widget rebuild to just before they are rendered
[libs/gltk.git] / source / label.cpp
index 263b2a4229d23c7c80747e37f3a66f880f2f5140..033bfd9296b07051bdd04691d0ba6d2d65985fff 100644 (file)
@@ -16,7 +16,7 @@ void Label::set_text(const string &t)
 {
        text = t;
        signal_autosize_changed.emit();
-       rebuild();
+       mark_rebuild();
 }
 
 void Label::autosize_special(const Part &part, Geometry &ageom) const