]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL22513: TC6.3.0: Post-Pro Preferences - Picking: Used Information Window Transpare...
authorvsr <vsr@opencascade.com>
Tue, 28 Jun 2011 13:56:55 +0000 (13:56 +0000)
committervsr <vsr@opencascade.com>
Tue, 28 Jun 2011 13:56:55 +0000 (13:56 +0000)
src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx

index 741fa36052897c40239e51f7c96201e49ce6cef4..ff01bda3fe8501f9fcc094c0ce5769f0c9738086 100644 (file)
@@ -230,7 +230,8 @@ void VisuGUI_SelectionPrefDlg::update()
                                             ( int )( aColor[2] * 255.0 ) ) );
 
   myInfoWindowGroup->setChecked( aPickingSettings->GetInfoWindowEnabled() );
-  vtkFloatingPointType transparency = aPickingSettings->GetInfoWindowTransparency() * 100.0;
+  // VSR 28.06.2011 : IPAL 22513: add 0.5 to eliminate any prevision problems
+  vtkFloatingPointType transparency = aPickingSettings->GetInfoWindowTransparency() * 100.0 + 0.5;
   myTransparencySpinBox->setValue( (int) transparency );
   myPositionComboBox->setCurrentIndex( aPickingSettings->GetInfoWindowPosition() );
   myCameraGroup->setChecked( aPickingSettings->GetCameraMovementEnabled() );