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(); }