]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Invocation of repaint() method was added before grabWindow() in dump view.
authorstv <stv@opencascade.com>
Tue, 6 Jun 2006 11:00:55 +0000 (11:00 +0000)
committerstv <stv@opencascade.com>
Tue, 6 Jun 2006 11:00:55 +0000 (11:00 +0000)
src/OCCViewer/OCCViewer_ViewWindow.cxx

index 4900fd9de51ef680d34f8bdfaf908b7383989030..352cd3588ae1db431af4e66eea13f6b108ea1136 100755 (executable)
@@ -927,8 +927,9 @@ void OCCViewer_ViewWindow::onTrihedronShow()
 //****************************************************************
 QImage OCCViewer_ViewWindow::dumpView()
 {
-  QPixmap px = QPixmap::grabWindow( myViewPort->winId() );
-  return px.convertToImage();
+  myViewPort->repaint();
+
+  return QPixmap::grabWindow( myViewPort->winId() ).convertToImage();
 }
                                                                               
 void  OCCViewer_ViewWindow::setCuttingPlane( bool on, const double x,  const double y,  const double z,