]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Dump view. View is dumped before showing dialog because sometimes dialog is dumped...
authorsln <sln@opencascade.com>
Thu, 13 Mar 2008 11:56:34 +0000 (11:56 +0000)
committersln <sln@opencascade.com>
Thu, 13 Mar 2008 11:56:34 +0000 (11:56 +0000)
src/GLViewer/GLViewer_ViewFrame.cxx

index d01b7262c04c1678e2bd409d996758b4e090c65f..f8e81f651d7967ce45236cbc0d7906c49f5b5e90 100644 (file)
@@ -414,6 +414,8 @@ QImage GLViewer_ViewFrame::dumpView()
 */
 void GLViewer_ViewFrame::onViewDump()
 {
+    QImage anImage = dumpView();
+
     QString aFilter( "*.bmp\n*.png\n*.jpeg" );
 
     QFileDialog aFileDlg( QDir::current().absPath(), aFilter, this );
@@ -456,7 +458,7 @@ void GLViewer_ViewFrame::onViewDump()
         aSaveOp = "JPEG";
     }
 
-    QImage anImage = dumpView();
+    //QImage anImage = dumpView();
     if( !anImage.save( aFileName, aSaveOp ) )
     {
         SUIT_MessageBox::error1( this,