From: rnv Date: Thu, 26 May 2011 12:46:00 +0000 (+0000) Subject: Fix for the bug "IPAL22511 TC6.3.0:Post-Pro preferences - Gauss Points: Range valuefo... X-Git-Tag: BR_Dev_For_6_3_120110530~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=302cfa36c1d2a39931563102299265f6c22cc2eb;p=modules%2Fvisu.git Fix for the bug "IPAL22511 TC6.3.0:Post-Pro preferences - Gauss Points: Range valuefor min and Magnification values are decreased by application" --- diff --git a/src/VISUGUI/VisuGUI_SizeBox.cxx b/src/VISUGUI/VisuGUI_SizeBox.cxx index 8e86bc12..db0b4d95 100644 --- a/src/VISUGUI/VisuGUI_SizeBox.cxx +++ b/src/VISUGUI/VisuGUI_SizeBox.cxx @@ -276,7 +276,8 @@ float VisuGUI_SizeBox::getOutsideSize() const void VisuGUI_SizeBox::setOutsideSize( float theOutsideSize ) { - myOutsideSizeSpinBox->setValue( ( int )( theOutsideSize * 100 ) ); + theOutsideSize*=100.; + myOutsideSizeSpinBox->setValue( ( int ) theOutsideSize ); } float VisuGUI_SizeBox::getGeomSize() const @@ -286,7 +287,8 @@ float VisuGUI_SizeBox::getGeomSize() const void VisuGUI_SizeBox::setGeomSize( float theGeomSize ) { - myGeomSizeSpinBox->setValue( ( int )( theGeomSize * 100 ) ); + theGeomSize*=100.; + myGeomSizeSpinBox->setValue( ( int ) theGeomSize ); } float VisuGUI_SizeBox::getMinSize() const @@ -296,7 +298,8 @@ float VisuGUI_SizeBox::getMinSize() const void VisuGUI_SizeBox::setMinSize( float theMinSize ) { - myMinSizeSpinBox->setValue( ( int )( theMinSize * 100 ) ); + theMinSize*=100.; + myMinSizeSpinBox->setValue( ( int ) theMinSize ); } float VisuGUI_SizeBox::getMaxSize() const @@ -306,7 +309,8 @@ float VisuGUI_SizeBox::getMaxSize() const void VisuGUI_SizeBox::setMaxSize( float theMaxSize ) { - myMaxSizeSpinBox->setValue( ( int )( theMaxSize * 100 ) ); + theMaxSize*=100.; + myMaxSizeSpinBox->setValue( (int) theMaxSize ); } float VisuGUI_SizeBox::getMagnification() const @@ -316,7 +320,8 @@ float VisuGUI_SizeBox::getMagnification() const void VisuGUI_SizeBox::setMagnification( float theMagnification ) { - myMagnificationSpinBox->setValue( ( int )( theMagnification * 100 ) ); + theMagnification*=100.; + myMagnificationSpinBox->setValue( (int) theMagnification ); } float VisuGUI_SizeBox::getIncrement() const