From 302cfa36c1d2a39931563102299265f6c22cc2eb Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 26 May 2011 12:46:00 +0000 Subject: [PATCH] Fix for the bug "IPAL22511 TC6.3.0:Post-Pro preferences - Gauss Points: Range valuefor min and Magnification values are decreased by application" --- src/VISUGUI/VisuGUI_SizeBox.cxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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 -- 2.39.2