From: vtn Date: Mon, 8 Sep 2014 07:43:44 +0000 (+0400) Subject: bug #559. Changes in Salome X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_PPGP730;p=modules%2Fgui.git bug #559. Changes in Salome --- diff --git a/src/Plot2d/Plot2d_ViewWindow.cxx b/src/Plot2d/Plot2d_ViewWindow.cxx old mode 100755 new mode 100644 index 6df2c8a22..2cc10aca5 --- a/src/Plot2d/Plot2d_ViewWindow.cxx +++ b/src/Plot2d/Plot2d_ViewWindow.cxx @@ -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. */ +