mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix crash when saving as PDF with dpi != 96
This commit is contained in:
parent
0ccaba7a70
commit
33b6fab131
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user