Salome HOME
Update Help for VISU module.
[modules/visu.git] / src / VISUGUI / VisuGUI_ScalarBarDlg.cxx
index 3769e64653e1f63b4b501f04f9ddc1c9b87fcb7f..bad70b7dcf57063c3efa4ceba8d3f4829f5dfc0d 100644 (file)
@@ -259,8 +259,6 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane (QWidget * parent, bool SetPref):
   connect( LabelSpin,    SIGNAL( valueChanged( int ) ), this, SLOT( updatePreview() ));
   connect( WidthSpin,    SIGNAL( valueChanged( double ) ), this, SLOT( updatePreview() ));
   connect( HeightSpin,   SIGNAL( valueChanged( double ) ), this, SLOT( updatePreview() ));
-  connect( MinEdit,      SIGNAL( textChanged( const QString& ) ), this, SLOT( updatePreview() ));
-  connect( MaxEdit,      SIGNAL( textChanged( const QString& ) ), this, SLOT( updatePreview() ));
   connect( CBLog,        SIGNAL( toggled( bool ) ), this, SLOT( updatePreview() ));
   changeRange( 0 );
   changeDefaults( 0 );
@@ -601,6 +599,8 @@ void VisuGUI_ScalarBarPane::createScalarBar()
   if (myPreviewActor != 0) return;
   if (myScalarMap == NULL) return;
 
+  if(!check()) return;
+
   int sbCol,sbLab;
   sbCol = getNbColors();
   sbLab = getNbLabels();