From: vsr Date: Tue, 28 Jun 2011 14:45:43 +0000 (+0000) Subject: TC6.3.0:Post-Pro preferences - Gauss Points: Range valuefor min and Magnification... X-Git-Tag: V6_3_1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=821e4628816fa38cadeff484e4623bff89990ddb;p=modules%2Fvisu.git 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 eb01fe98..7343a5c7 100644 --- a/src/VISUGUI/VisuGUI_SizeBox.cxx +++ b/src/VISUGUI/VisuGUI_SizeBox.cxx @@ -276,8 +276,7 @@ float VisuGUI_SizeBox::getOutsideSize() const void VisuGUI_SizeBox::setOutsideSize( float theOutsideSize ) { - theOutsideSize*=100.; - myOutsideSizeSpinBox->setValue( ( int ) theOutsideSize ); + myOutsideSizeSpinBox->setValue( ( int ) ( theOutsideSize * 100. + 0.5 ) ); } float VisuGUI_SizeBox::getGeomSize() const @@ -287,8 +286,7 @@ float VisuGUI_SizeBox::getGeomSize() const void VisuGUI_SizeBox::setGeomSize( float theGeomSize ) { - theGeomSize*=100.; - myGeomSizeSpinBox->setValue( ( int ) theGeomSize ); + myGeomSizeSpinBox->setValue( ( int ) ( theGeomSize * 100. + 0.5 ) ); } float VisuGUI_SizeBox::getMinSize() const @@ -298,8 +296,7 @@ float VisuGUI_SizeBox::getMinSize() const void VisuGUI_SizeBox::setMinSize( float theMinSize ) { - theMinSize*=100.; - myMinSizeSpinBox->setValue( ( int ) theMinSize ); + myMinSizeSpinBox->setValue( ( int ) ( theMinSize * 100. + 0.5 ) ); } float VisuGUI_SizeBox::getMaxSize() const @@ -309,8 +306,7 @@ float VisuGUI_SizeBox::getMaxSize() const void VisuGUI_SizeBox::setMaxSize( float theMaxSize ) { - theMaxSize*=100.; - myMaxSizeSpinBox->setValue( (int) theMaxSize ); + myMaxSizeSpinBox->setValue( (int) ( theMaxSize * 100. + 0.5 ) ); } float VisuGUI_SizeBox::getMagnification() const @@ -320,8 +316,7 @@ float VisuGUI_SizeBox::getMagnification() const void VisuGUI_SizeBox::setMagnification( float theMagnification ) { - theMagnification*=100.; - myMagnificationSpinBox->setValue( (int) theMagnification ); + myMagnificationSpinBox->setValue( (int) ( theMagnification * 100. + 0.5 ) ); } float VisuGUI_SizeBox::getIncrement() const