]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To remove the following compiler warning:
authorapo <apo@opencascade.com>
Fri, 16 Dec 2005 09:36:25 +0000 (09:36 +0000)
committerapo <apo@opencascade.com>
Fri, 16 Dec 2005 09:36:25 +0000 (09:36 +0000)
/data/apo/MERGE/VISU_SRC/src/VVTK/VVTK_PickingDlg.cxx: In member function `void
   VVTK_PickingDlg::Update()':
/data/apo/MERGE/VISU_SRC/src/VVTK/VVTK_PickingDlg.cxx:247: warning: passing `
   double' for converting 1 of `virtual void QtxIntSpinBox::setValue(int)'

src/VVTK/VVTK_PickingDlg.cxx

index 0d9052eb768a08d12d3f9f12d3ced88982f9af7b..06e1dabbdeeff91e1c4dcfc174b89ba65c5f015b 100644 (file)
@@ -244,8 +244,7 @@ void VVTK_PickingDlg::Update()
     myCursorSizeSpinBox->setValue( myPickingSettings->GetCursorSize() );
     myPyramidHeightSpinBox->setValue( myPickingSettings->GetPyramidHeight() );
     myPointToleranceSpinBox->setValue( myPickingSettings->GetPointTolerance() );
-    myTransparencySpinBox->setValue( myPickingSettings->GetInfoWindowTransparency() * 100.0 );
-    myTransparencySpinBox->setValue( ( int )myPickingSettings->GetInfoWindowTransparency() * 100 );
+    myTransparencySpinBox->setValue( int(myPickingSettings->GetInfoWindowTransparency() * 100.0) );
     myPositionComboBox->setCurrentItem( myPickingSettings->GetInfoWindowPosition() );
     myZoomFactorSpinBox->setValue( myPickingSettings->GetZoomFactor() );
     myStepNumberSpinBox->setValue( myPickingSettings->GetStepNumber() );