From 5c0164e82057fd789164d38dd4d3b2fee80916db Mon Sep 17 00:00:00 2001 From: enk Date: Fri, 11 Nov 2005 13:15:13 +0000 Subject: [PATCH] Correction on Bug PAL8597 apply button on "edit window" for 3d objects. --- src/VISUGUI/VisuGUI_ScalarBarDlg.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2