From 713d618013deb3ed484168646743945b06de72b3 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 28 Jun 2011 13:56:55 +0000 Subject: [PATCH] IPAL22513: TC6.3.0: Post-Pro Preferences - Picking: Used Information Window Transparency value is less than in preferences one --- src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() ); -- 2.39.2