Skip to content

Commit 1113e5b

Browse files
committedOct 24, 2018
fix build with Qt <5.6
1 parent b9c1440 commit 1113e5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/core/qgsrenderchecker.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ bool QgsRenderChecker::runTest( const QString &testName,
194194
mElapsedTime = myTime.elapsed();
195195

196196
QImage myImage = job.renderedImage();
197+
#if QT_VERSION >= 0x050600
197198
Q_ASSERT( myImage.devicePixelRatioF() == mMapSettings.devicePixelRatio() );
199+
#endif
198200

199201
//
200202
// Save the pixmap to disk so the user can make a

1 commit comments

Comments
 (1)

3nids commented on Oct 24, 2018

@3nids
Member

thanks @jef-n

Please sign in to comment.