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 );
if (myPreviewActor != 0) return;
if (myScalarMap == NULL) return;
+ if(!check()) return;
+
int sbCol,sbLab;
sbCol = getNbColors();
sbLab = getNbLabels();