Skip to content
Permalink
Browse files

Fix crash upon setting non-integer Dpi while in debug mode

Closes #15566
  • Loading branch information
strk committed Oct 19, 2016
1 parent b779a6a commit 133a6f5ab907c25785df9c876d6c6a8bfdb93d50
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsmaprenderercustompainterjob.cpp
@@ -74,7 +74,7 @@ void QgsMapRendererCustomPainterJob::start()
#ifndef QT_NO_DEBUG
QPaintDevice* thePaintDevice = mPainter->device();
QString errMsg = QString( "pre-set DPI not equal to painter's DPI (%1 vs %2)" ).arg( thePaintDevice->logicalDpiX() ).arg( mSettings.outputDpi() );
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() );
#endif

delete mLabelingEngine;

0 comments on commit 133a6f5

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