From 8dbeb738cd285bb47852a035352cc336a0104452 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 1 Jul 2011 12:37:46 +0000 Subject: [PATCH] Printing in Plot2d: default orientation of page has been set to "landscape". --- src/Plot2d/Plot2d_ViewFrame.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 85ffb2ca0..5d3c36c89 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -2302,11 +2302,13 @@ bool Plot2d_ViewFrame::print( const QString& file, const QString& format ) const SUIT_Application* anApp = SUIT_Session::session()->activeApplication(); QPrinter aPrinter( QPrinter::HighResolution ); - aPrinter.setPageSize( QPrinter::A4 ); if( anApp ) aPrinter.setPrinterName( anApp->getLastUsedPrinter() ); + aPrinter.setPageSize( QPrinter::A4 ); + aPrinter.setOrientation( QPrinter::Landscape ); + QPrintDialog aDlg( &aPrinter ); int aStatus = aDlg.exec(); if( aStatus ) -- 2.39.2