From: vsr Date: Tue, 28 Jun 2011 13:56:55 +0000 (+0000) Subject: IPAL22513: TC6.3.0: Post-Pro Preferences - Picking: Used Information Window Transpare... X-Git-Tag: V6_3_1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=713d618013deb3ed484168646743945b06de72b3;p=modules%2Fvisu.git IPAL22513: TC6.3.0: Post-Pro Preferences - Picking: Used Information Window Transparency value is less than in preferences one --- diff --git a/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx b/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx index 741fa360..ff01bda3 100644 --- a/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx +++ b/src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx @@ -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() );