]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL 18594 Correct Cancel button
authordmv <dmv@opencascade.com>
Fri, 18 Jan 2008 12:40:36 +0000 (12:40 +0000)
committerdmv <dmv@opencascade.com>
Fri, 18 Jan 2008 12:40:36 +0000 (12:40 +0000)
src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx

index 23e5dd1ea401b2847bec290bb8c790be170509e4..e5a61232f78c191cd849ef2c3a2da36fcd2d45fa 100644 (file)
@@ -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();
 }