diff --git a/ui/RotatorWidget.cpp b/ui/RotatorWidget.cpp index 4ed847e7..6c03ede2 100644 --- a/ui/RotatorWidget.cpp +++ b/ui/RotatorWidget.cpp @@ -101,7 +101,7 @@ void RotatorWidget::redrawMap() x3 = x3 < 0 ? x3 + source.width() : x3; int y3 = static_cast(t * static_cast(source.height())) % source.height(); - y3 = y3 < 0 ? y3 + source.width() : y3; + y3 = y3 < 0 ? y3 + source.height() : y3; map.setPixelColor(x, y, source.pixelColor(x3, y3)); }