Skip to content

Commit

Permalink
Avoid tiny scale jumps when repeatable clicking 'zoom to native scale'
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 7, 2019
1 parent a749cd9 commit a707346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10357,7 +10357,7 @@ void QgisApp::legendLayerZoomNative()
i--;
}

mMapCanvas->zoomByFactor( diagonalNativeResolutions.at( i ) / diagonalSize );
mMapCanvas->zoomByFactor( nativeResolutions.at( i ) / mMapCanvas->mapUnitsPerPixel() );
}
else
{
Expand Down

0 comments on commit a707346

Please sign in to comment.