1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-02 18:47:19 +03:00

IconButton: fixed up-to-date check in setPosition().

Recalculate size if either x or y changed, not necessarily both of them.
This commit is contained in:
Maarten ter Huurne 2011-10-23 12:06:59 +02:00
parent 76613d1810
commit abe9130de9

View File

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