Author: mordante
Date: Wed Aug 13 08:12:25 2008
New Revision: 28525
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28525&view=rev
Log:
Changing the icon should dirty the toggle button otherwise the image won't be
updated, spotted by ilor.
Modified:
trunk/src/gui/widgets/toggle_button.cpp
Modified: trunk/src/gui/widgets/toggle_button.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/toggle_button.cpp?rev=28525&r1=28524&r2=28525&view=diff
==============================================================================
--- trunk/src/gui/widgets/toggle_button.cpp (original)
+++ trunk/src/gui/widgets/toggle_button.cpp Wed Aug 13 08:12:25 2008
@@ -129,6 +129,8 @@
foreach(tcanvas& canvas, tcontrol::canvas()) {
canvas.set_variable("icon", variant(icon_name_));
}
+
+ set_dirty();
}
void ttoggle_button::set_value(const bool selected)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits