From: mzn Date: Wed, 21 Dec 2005 13:39:27 +0000 (+0000) Subject: Fix for bug IPAL11008 ( Mandrake10.1: Preview of scalar bar work only for Scalar... X-Git-Tag: T_Before_Join_BR_3_1_0deb~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=98f523ca00732b4bc3bc04a2dc0a644021cc8a8d;p=modules%2Fvisu.git Fix for bug IPAL11008 ( Mandrake10.1: Preview of scalar bar work only for Scalar Map ). --- 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(); + } } /*!