From: sln Date: Thu, 13 Mar 2008 11:56:34 +0000 (+0000) Subject: Dump view. View is dumped before showing dialog because sometimes dialog is dumped... X-Git-Tag: CTH_V1_3_2p1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cc053c0fa49deb07470a0e40f7353b0148fca5f;p=modules%2Fgui.git Dump view. View is dumped before showing dialog because sometimes dialog is dumped together with view (CTH19141) --- diff --git a/src/GLViewer/GLViewer_ViewFrame.cxx b/src/GLViewer/GLViewer_ViewFrame.cxx index d01b7262c..f8e81f651 100644 --- a/src/GLViewer/GLViewer_ViewFrame.cxx +++ b/src/GLViewer/GLViewer_ViewFrame.cxx @@ -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,