From 90bae5652fca9297b8f5edca1c7e2322690ee822 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 18 Jan 2008 12:40:36 +0000 Subject: [PATCH] IPAL 18594 Correct Cancel button --- src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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(); } -- 2.39.2