Skip to content

Commit

Permalink
Fix crash when saving as PDF with dpi != 96
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed May 14, 2017
1 parent 0ccaba7 commit 33b6fab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 33b6fab

Please sign in to comment.