From: enk Date: Fri, 11 Nov 2005 13:15:13 +0000 (+0000) Subject: Correction on Bug PAL8597 apply button on "edit window" for 3d objects. X-Git-Tag: V3_1_0a3~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c0164e82057fd789164d38dd4d3b2fee80916db;p=modules%2Fvisu.git Correction on Bug PAL8597 apply button on "edit window" for 3d objects. --- diff --git a/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx b/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx index 3769e646..bad70b7d 100644 --- a/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx +++ b/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx @@ -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();