Skip to content

Commit

Permalink
fix fcf85a1
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 21, 2018
1 parent 7e3b5f4 commit f963ba3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/qgsmapcanvasmap.cpp
Expand Up @@ -71,15 +71,17 @@ void QgsMapCanvasMap::paint( QPainter *painter )
if ( mImage.size() != QSize( w, h ) * mImage.devicePixelRatio() )
#endif
{
QgsDebugMsg( QStringLiteral( "map paint DIFFERENT SIZE: img %1,%2 item %3,%4" )
#if QT_VERSION >= 0x050600
QgsDebugMsg( QStringLiteral( "map paint DIFFERENT SIZE: img %1,%2 item %3,%4" )
.arg( mImage.width() / mImage.devicePixelRatioF() )
.arg( mImage.height() / mImage.devicePixelRatioF() )
.arg( w ).arg( h ) );
#else
QgsDebugMsg( QStringLiteral( "map paint DIFFERENT SIZE: img %1,%2 item %3,%4" )
.arg( mImage.width() / mImage.devicePixelRatio() )
.arg( mImage.height() / mImage.devicePixelRatio() )
#endif
.arg( w ).arg( h ) );
#endif
// This happens on zoom events when ::paint is called before
// the renderer has completed
scale = true;
Expand Down

0 comments on commit f963ba3

Please sign in to comment.