We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5f91f6 commit 6e0624cCopy full SHA for 6e0624c
1 file changed
src/scratch/sprite.cpp
@@ -579,12 +579,8 @@ void Sprite::setXY(double x, double y)
579
} else
580
impl->getFencedPosition(x, y, &impl->x, &impl->y);
581
582
- if (impl->visible) {
583
- IEngine *eng = engine();
584
-
585
- if (eng)
586
- eng->requestRedraw();
587
- }
+ if (eng && impl->visible)
+ eng->requestRedraw();
588
589
if (impl->iface)
590
impl->iface->onMoved(oldX, oldY, impl->x, impl->y);
0 commit comments