From: stv Date: Tue, 13 Dec 2005 09:59:16 +0000 (+0000) Subject: Undo previously made modifications X-Git-Tag: TG-D5-38-2003_D2005-20-12~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b231937157e4396dd10ae1dc6aef8658b46c6868;p=modules%2Fgui.git Undo previously made modifications --- diff --git a/src/Qtx/QtxColorScale.cxx b/src/Qtx/QtxColorScale.cxx index 2a2ac1d69..7be7ba48d 100755 --- a/src/Qtx/QtxColorScale.cxx +++ b/src/Qtx/QtxColorScale.cxx @@ -604,7 +604,7 @@ QSize QtxColorScale::calculateSize( const bool min, const int flags, const bool { scaleWidth = colorWidth + textWidth + ( textWidth ? 3 : 2 ) * spacer; if ( min ) - scaleHeight = 3 * textHeight; + scaleHeight = QMAX( 2 * num, 3 * textHeight ); else scaleHeight = (int)( 1.5 * ( num + 1 ) * textHeight ); }