]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/toggle.cpp
Fix a crash if the linear program contains an empty column
[libs/gltk.git] / source / toggle.cpp
index 753257c775ce86fc81bd973898672e4783f86196..6d2a10b16644d6254163b53b26c6f92ead7754ce 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007-2011  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "panel.h"
 #include "part.h"
 #include "style.h"
@@ -42,6 +35,7 @@ void Toggle::autosize()
 void Toggle::set_text(const string &t)
 {
        text = t;
+       signal_autosize_changed.emit();
 }
 
 void Toggle::set_exclusive(bool e)