Fix for Bug IPAL11977:

TC: Incorrect AspectRatio3D presentation after editing Scalar Bar properties
This commit is contained in:
enk 2006-03-27 09:48:18 +00:00
parent 38e52aa7f0
commit 5f5ee84f19

View File

@ -637,8 +637,8 @@ void SMESHGUI_Preferences_ScalarBarDlg::onSelectionChanged()
if ( myScalarBarActor->GetLookupTable() ) { if ( myScalarBarActor->GetLookupTable() ) {
float *range = myScalarBarActor->GetLookupTable()->GetRange(); float *range = myScalarBarActor->GetLookupTable()->GetRange();
myMinEdit->setText( QString::number( range[0] ) ); myMinEdit->setText( QString::number( range[0],'g',12 ) );
myMaxEdit->setText( QString::number( range[1] ) ); myMaxEdit->setText( QString::number( range[1],'g',12 ) );
} }
vtkTextProperty* aTitleTextPrp = myScalarBarActor->GetTitleTextProperty(); vtkTextProperty* aTitleTextPrp = myScalarBarActor->GetTitleTextProperty();