From 98f523ca00732b4bc3bc04a2dc0a644021cc8a8d Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 21 Dec 2005 13:39:27 +0000 Subject: [PATCH] Fix for bug IPAL11008 ( Mandrake10.1: Preview of scalar bar work only for Scalar Map ). --- src/VISUGUI/VisuGUI_ScalarBarDlg.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx b/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx index 9cffb002..717c2bff 100644 --- a/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx +++ b/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx @@ -263,6 +263,7 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane (QWidget * parent, bool SetPref): changeRange( 0 ); changeDefaults( 0 ); myIsStoreTextProp = false; + myBusy = false; } @@ -1031,8 +1032,11 @@ VisuGUI_ScalarBarDlg::VisuGUI_ScalarBarDlg (SalomeApp_Module* theModule, bool Se */ void VisuGUI_ScalarBarDlg::accept() { - myScalarPane->deletePreview(); - if (myScalarPane->check()) QDialog::accept(); + if (myScalarPane->check()) + { + myScalarPane->deletePreview(); + QDialog::accept(); + } } /*! -- 2.39.2