1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed PNG export layout

This commit is contained in:
Martin Tůma 2020-09-29 19:49:33 +02:00
parent 0f8859dd20
commit 1f52dad1c6

View File

@ -1068,8 +1068,8 @@ void GUI::exportPNGFile()
img.save(_pngExport.fileName); img.save(_pngExport.fileName);
if (!_tabs.isEmpty() && _options.separateGraphPage) { if (!_tabs.isEmpty() && _options.separateGraphPage) {
QImage img2(_pngExport.size.width(), (int)graphPlotHeight(rect, 1), QImage img2(_pngExport.size.width(), (int)graphPlotHeight(rect, 1)
QImage::Format_ARGB32_Premultiplied); + _pngExport.margins.bottom(), QImage::Format_ARGB32_Premultiplied);
QPainter p2(&img2); QPainter p2(&img2);
QRectF rect2(0, 0, img2.width(), img2.height()); QRectF rect2(0, 0, img2.width(), img2.height());