partly revert 2013-02-09T16:12:47Z!koraq@xs4all.nl...

...to work around another MSVC compile error

tcontrol::canvas(): "invalid call to non-static member function"
This commit is contained in:
Anonymissimus 2013-02-10 20:13:02 +00:00
parent 6c370b200f
commit 0f12eee9c6

View file

@ -88,7 +88,8 @@ void ttoggle_button::update_canvas()
tcontrol::update_canvas();
// set icon in canvases
FOREACH(AUTO& canvas, tcontrol::canvas()) {
std::vector<tcanvas>& canvases = tcontrol::canvas();
FOREACH(AUTO& canvas, canvases) {
canvas.set_variable("icon", variant(icon_name_));
}