From 48211eedb4e95d5eda62dbd6fb0a93138e6ebd20 Mon Sep 17 00:00:00 2001 From: vtn Date: Mon, 8 Sep 2014 11:43:44 +0400 Subject: [PATCH] bug #559. Changes in Salome --- src/Plot2d/Plot2d_ViewWindow.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100755 => 100644 src/Plot2d/Plot2d_ViewWindow.cxx 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. */ + -- 2.39.2