]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for the bug "IPAL22513 TC6.3.0: Post-Pro Preferences - Picking: Used Information...
authorrnv <rnv@opencascade.com>
Thu, 26 May 2011 12:49:33 +0000 (12:49 +0000)
committerrnv <rnv@opencascade.com>
Thu, 26 May 2011 12:49:33 +0000 (12:49 +0000)
src/VISUGUI/VisuGUI_SelectionPrefDlg.cxx

index 486d5957bfb45cb3e215bffadcaceb4a6962c697..8e90e8c7b98cd4c64240181dafe816de0f6dc7b1 100644 (file)
@@ -230,7 +230,8 @@ void VisuGUI_SelectionPrefDlg::update()
                                             ( int )( aColor[2] * 255.0 ) ) );
 
   myInfoWindowGroup->setChecked( aPickingSettings->GetInfoWindowEnabled() );
-  myTransparencySpinBox->setValue( int(aPickingSettings->GetInfoWindowTransparency() * 100.0) );
+  vtkFloatingPointType transparency = aPickingSettings->GetInfoWindowTransparency() * 100.0;
+  myTransparencySpinBox->setValue( (int) transparency );
   myPositionComboBox->setCurrentIndex( aPickingSettings->GetInfoWindowPosition() );
   myCameraGroup->setChecked( aPickingSettings->GetCameraMovementEnabled() );
   myZoomFactorSpinBox->setValue( aPickingSettings->GetZoomFactor() );