We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f289ef3 commit acf74a6Copy full SHA for acf74a6
src/core/qgsmaprenderercustompainterjob.cpp
@@ -75,7 +75,7 @@ void QgsMapRendererCustomPainterJob::start()
75
#ifndef QT_NO_DEBUG
76
QPaintDevice* thePaintDevice = mPainter->device();
77
QString errMsg = QString( "pre-set DPI not equal to painter's DPI (%1 vs %2)" ).arg( thePaintDevice->logicalDpiX() ).arg( mSettings.outputDpi() );
78
- Q_ASSERT_X( qgsDoubleNear( thePaintDevice->logicalDpiX(), mSettings.outputDpi() ), "Job::startRender()", errMsg.toAscii().data() );
+ Q_ASSERT_X( thePaintDevice->logicalDpiX() == round( mSettings.outputDpi() ), "Job::startRender()", errMsg.toAscii().data() );
79
#endif
80
81
delete mLabelingEngine;
0 commit comments