]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for Bug IPAL11977:
authorenk <enk@opencascade.com>
Mon, 27 Mar 2006 09:48:18 +0000 (09:48 +0000)
committerenk <enk@opencascade.com>
Mon, 27 Mar 2006 09:48:18 +0000 (09:48 +0000)
TC: Incorrect AspectRatio3D presentation after editing Scalar Bar properties

src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx

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