]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Correction on Bug PAL8597 apply button on "edit window" for 3d objects.
authorenk <enk@opencascade.com>
Fri, 11 Nov 2005 13:15:13 +0000 (13:15 +0000)
committerenk <enk@opencascade.com>
Fri, 11 Nov 2005 13:15:13 +0000 (13:15 +0000)
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();