Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unnecessary DPR multiplication
This causes wrong map scale display on high DPI screen
  • Loading branch information
jbp35 authored and nyalldawson committed May 11, 2023
1 parent 0ec8839 commit 38700f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmapsettings.cpp
Expand Up @@ -193,7 +193,7 @@ void QgsMapSettings::updateDerived()
mVisibleExtent.set( dxmin, dymin, dxmax, dymax );

// update the scale
mScaleCalculator.setDpi( mDpi * mDevicePixelRatio );
mScaleCalculator.setDpi( mDpi );
mScale = mScaleCalculator.calculate( mVisibleExtent, mSize.width() );

bool ok = true;
Expand Down

0 comments on commit 38700f6

Please sign in to comment.