]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Printing in Plot2d: default orientation of page has been set to "landscape".
authorouv <ouv@opencascade.com>
Fri, 1 Jul 2011 12:37:46 +0000 (12:37 +0000)
committerouv <ouv@opencascade.com>
Fri, 1 Jul 2011 12:37:46 +0000 (12:37 +0000)
src/Plot2d/Plot2d_ViewFrame.cxx

index 85ffb2ca07f0c63647911a330dd2181b49cc0936..5d3c36c8954bf0035a6c5becfd5eaf52cd5cfc5f 100755 (executable)
@@ -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 )