Skip to content
Permalink
Browse files
use logical dpi as fallback
  • Loading branch information
m-kuhn committed Jul 13, 2021
1 parent 50ec9aa commit 0f25f999856de593700ce0c648ba94b5c77d29a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsmapcanvas.cpp
@@ -987,7 +987,7 @@ void QgsMapCanvas::updateDevicePixelFromScreen()
else
{
// Fallback: compatibility with QGIS <= 3.20; always assume low dpi screens
mSettings.setOutputDpi( 96.0 );
mSettings.setOutputDpi( window()->windowHandle()->screen()->logicalDotsPerInch() );
}
}

0 comments on commit 0f25f99

Please sign in to comment.