mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 20:08:27 +02: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:
parent
76613d1810
commit
abe9130de9
@ -24,7 +24,7 @@ void IconButton::updateSurfaces()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void IconButton::setPosition(int x, int y) {
|
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);
|
Button::setPosition(x,y);
|
||||||
recalcSize();
|
recalcSize();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user