]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Undo previously made modifications
authorstv <stv@opencascade.com>
Tue, 13 Dec 2005 09:59:16 +0000 (09:59 +0000)
committerstv <stv@opencascade.com>
Tue, 13 Dec 2005 09:59:16 +0000 (09:59 +0000)
src/Qtx/QtxColorScale.cxx

index 2a2ac1d698794dd5046674a80c17574f4b32c415..7be7ba48d1931e6acb7d4ae81cbb32e1502aa380 100755 (executable)
@@ -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 );
        }