From b343d712902ab28c2f4b192c70cdf98f46a1296d Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 6 Jun 2006 11:00:55 +0000 Subject: [PATCH] Invocation of repaint() method was added before grabWindow() in dump view. --- src/OCCViewer/OCCViewer_ViewWindow.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, -- 2.39.2