Skip to content
Permalink
Browse files

fix fcf85a1

  • Loading branch information
jef-n committed Oct 21, 2018
1 parent 7e3b5f4 commit f963ba32ead88a8155a92267387bd8eedf344a28
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/gui/qgsmapcanvasmap.cpp
@@ -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;

0 comments on commit f963ba3

Please sign in to comment.
You can’t perform that action at this time.