Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update qgsmapcanvas.cpp
  • Loading branch information
jbp35 authored and nyalldawson committed May 11, 2023
1 parent fc47195 commit 4238b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -1244,7 +1244,7 @@ void QgsMapCanvas::notifyRendererErrors( const QgsMapRendererJob::Errors &errors

void QgsMapCanvas::updateDevicePixelFromScreen()
{
mSettings.setDevicePixelRatio( devicePixelRatioF() );
mSettings.setDevicePixelRatio( static_cast<float>( devicePixelRatioF() ) );
// TODO: QGIS 4 -> always respect screen dpi
if ( QgsSettingsRegistryGui::settingsRespectScreenDPI->value() )
{
Expand Down

0 comments on commit 4238b97

Please sign in to comment.