Fix crash when saving as PDF with dpi != 96

This commit is contained in:
Mathieu Pellerin 2017-05-14 11:00:00 +07:00 committed by GitHub
parent 0ccaba7a70
commit 33b6fab131

View File

@ -5899,10 +5899,14 @@ void QgisApp::saveMapAsPdf()
return;
}
image->setDotsPerMeterX( 1000 * dlg.dpi() / 25.4 );
image->setDotsPerMeterY( 1000 * dlg.dpi() / 25.4 );
p->begin( image );
}
else
{
printer->setResolution( dlg.dpi() );
p->begin( printer );
}