mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 01:51:49 +08:00
FIXED: exporting gridPrinting plots when using only a JKQTBasePlotter
This commit is contained in:
parent
3a789250be
commit
b6b5c48d9e
@ -2242,8 +2242,8 @@ void JKQTBasePlotter::exportpreviewPaintRequested(JKQTPEnhancedPainter &painter,
|
||||
QApplication::processEvents();
|
||||
int oldWidgetWidth=widgetWidth;
|
||||
int oldWidgetHeight=widgetHeight;
|
||||
widgetWidth=size.width();
|
||||
widgetHeight=size.height();
|
||||
//widgetWidth=size.width();
|
||||
//widgetHeight=size.height();
|
||||
|
||||
gridPaint(painter, size);
|
||||
widgetWidth=oldWidgetWidth;
|
||||
@ -4047,7 +4047,7 @@ QImage JKQTBasePlotter::grabPixelImage(QSize size, bool showPreview)
|
||||
//std::cout<<gridPrintingSize.width()<<", "<<gridPrintingSize.height()<<std::endl;
|
||||
printSizeX_Millimeter=gridPrintingSize.width();
|
||||
printSizeY_Millimeter=gridPrintingSize.height();
|
||||
if (!showPreview) {
|
||||
if (!showPreview && !gridPrinting) {
|
||||
printSizeX_Millimeter=widgetWidth;
|
||||
printSizeY_Millimeter=widgetHeight;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user