From 1f52dad1c680e56de8b699e60e48b5b332b40305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 29 Sep 2020 19:49:33 +0200 Subject: [PATCH] Fixed PNG export layout --- src/GUI/gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 4b7ab871..ec2a63e0 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -1068,8 +1068,8 @@ void GUI::exportPNGFile() img.save(_pngExport.fileName); if (!_tabs.isEmpty() && _options.separateGraphPage) { - QImage img2(_pngExport.size.width(), (int)graphPlotHeight(rect, 1), - QImage::Format_ARGB32_Premultiplied); + QImage img2(_pngExport.size.width(), (int)graphPlotHeight(rect, 1) + + _pngExport.margins.bottom(), QImage::Format_ARGB32_Premultiplied); QPainter p2(&img2); QRectF rect2(0, 0, img2.width(), img2.height());