Skip to content

Commit

Permalink
Fix #52062 zoomWithCenter when view is rotated
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannQDQ authored and nyalldawson committed Mar 29, 2023
1 parent b0dc78a commit 34ceb55
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -2663,10 +2663,7 @@ void QgsMapCanvas::zoomWithCenter( int x, int y, bool zoomIn )
}
else
{
QgsRectangle r = mapSettings().visibleExtent();
r.scale( scaleFactor, &center );
setExtent( r, true );
refresh();
zoomByFactor( scaleFactor, &center );
}
}

Expand Down

0 comments on commit 34ceb55

Please sign in to comment.