From abe9130de929312b67133938dc0cfb8bc3b2ff7f Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Sun, 23 Oct 2011 12:06:59 +0200 Subject: [PATCH] IconButton: fixed up-to-date check in setPosition(). Recalculate size if either x or y changed, not necessarily both of them. --- src/iconbutton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iconbutton.cpp b/src/iconbutton.cpp index ed05a70..f08f97c 100644 --- a/src/iconbutton.cpp +++ b/src/iconbutton.cpp @@ -24,7 +24,7 @@ void IconButton::updateSurfaces() } void IconButton::setPosition(int x, int y) { - if (rect.x != x && rect.y != y) { + if (rect.x != x || rect.y != y) { Button::setPosition(x,y); recalcSize(); }