]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
bug #559. Changes in Salome BR_PPGP730
authorvtn <vtn@opencascade.com>
Mon, 8 Sep 2014 07:43:44 +0000 (11:43 +0400)
committervtn <vtn@opencascade.com>
Mon, 8 Sep 2014 07:43:44 +0000 (11:43 +0400)
src/Plot2d/Plot2d_ViewWindow.cxx [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 6df2c8a..2cc10ac
@@ -742,10 +742,11 @@ void Plot2d_ViewWindow::onDumpView()
 QImage Plot2d_ViewWindow::dumpView()
 {
   if ( getToolBar()->underMouse() || myDumpImage.isNull() ) {
-    QPixmap px = QPixmap::grabWindow( myViewFrame->winId() );
+    //QPixmap px = QPixmap::grabWindow( myViewFrame->winId() );
+    QPixmap px(myViewFrame->size());
+    myViewFrame->render(&px);
     return px.toImage();
   }
-  
   return myDumpImage;
 }
 
@@ -928,3 +929,4 @@ void Plot2d_ViewWindow::onPrintView()
   \fn void Plot2d_ViewWindow::cloneView();
   \brief Emitted when the "Clone View" action is activated.
 */
+