From: dmv Date: Fri, 18 Jan 2008 12:40:36 +0000 (+0000) Subject: IPAL 18594 Correct Cancel button X-Git-Tag: V4_1_1rc1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=90bae5652fca9297b8f5edca1c7e2322690ee822;p=modules%2Fvisu.git IPAL 18594 Correct Cancel button --- diff --git a/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx b/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx index 23e5dd1e..e5a61232 100644 --- a/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx +++ b/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx @@ -210,12 +210,8 @@ void VisuGUI_DeformedShapeDlg::accept() void VisuGUI_DeformedShapeDlg::reject() { - if (isApplyed) { - if ( myPrsCopy->GetNumberOfActors() != 0 ) - VisuGUI_ScalarBarBaseDlg::done( 1 ); - else - VisuGUI_ScalarBarBaseDlg::reject(); - } + if (isApplyed) + VisuGUI_ScalarBarBaseDlg::done( 1 ); else VisuGUI_ScalarBarBaseDlg::reject(); }