]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug IPAL11008 ( Mandrake10.1: Preview of scalar bar work only for Scalar...
authormzn <mzn@opencascade.com>
Wed, 21 Dec 2005 13:39:27 +0000 (13:39 +0000)
committermzn <mzn@opencascade.com>
Wed, 21 Dec 2005 13:39:27 +0000 (13:39 +0000)
src/VISUGUI/VisuGUI_ScalarBarDlg.cxx

index 9cffb00221a8f4fe309f8c3bbb21d7edb1b32356..717c2bffeb4b05a11d0d71f0cc8f79c6d93797cf 100644 (file)
@@ -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();
+    }
 }
 
 /*!