[Qgis-developer] Magnifier causes crash

Denis Rouzaud denis.rouzaud at gmail.com
Wed Sep 14 23:31:30 PDT 2016



On 09/14/2016 07:57 PM, Raymond Nijssen wrote:
> Fatal: ASSERT failure in Job::startRender(): "pre-set DPI not equal to
> painter's DPI (10 vs 9.6)", file
> /tmp/buildd/qgis-2.17.0+git20160806+cb02b9f+13jessie/src/core

The DPI in QgsMapSettings is a double to allow small magnification scale
(i.e. zoom out) while QPaintDevice::logicalDpiX is an integer.

https://github.com/qgis/QGIS/blob/master/src/core/qgsmaprenderercustompainterjob.cpp#L73
This means that the application will crash if in Debug mode (not in
Release mode)

I am not sure if we can safely remove this.
Martin, may you have a look here?

Thanks a lot,

Denis




More information about the Qgis-developer mailing list