From: stv Date: Tue, 6 Jun 2006 11:00:55 +0000 (+0000) Subject: Invocation of repaint() method was added before grabWindow() in dump view. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b343d712902ab28c2f4b192c70cdf98f46a1296d;p=modules%2Fgui.git Invocation of repaint() method was added before grabWindow() in dump view. --- diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index 4900fd9de..352cd3588 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -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,