diff --git a/src/Gui/View3DInventor.cpp b/src/Gui/View3DInventor.cpp index d49d9d8867..1c78952eb5 100644 --- a/src/Gui/View3DInventor.cpp +++ b/src/Gui/View3DInventor.cpp @@ -477,7 +477,9 @@ void View3DInventor::printPreview() { QPrinter printer(QPrinter::ScreenResolution); printer.setFullPage(true); - //printer.setPageSize(QPrinter::A3); +#if (QT_VERSION > QT_VERSION_CHECK(5, 9, 0)) + printer.setPageSize(QPrinter::A4); +#endif printer.setOrientation(QPrinter::Landscape); QPrintPreviewDialog dlg(&printer, this);