From: ouv Date: Fri, 4 Mar 2011 10:08:28 +0000 (+0000) Subject: Minor fix X-Git-Tag: DIAGRAM_1_0~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=940c1bd08195ce53b997cc9f92bb87816f3952fe;p=modules%2Fgui.git Minor fix --- diff --git a/src/GraphicsView/GraphicsView_ViewPort.cxx b/src/GraphicsView/GraphicsView_ViewPort.cxx index b95e1cf65..cfe225496 100644 --- a/src/GraphicsView/GraphicsView_ViewPort.cxx +++ b/src/GraphicsView/GraphicsView_ViewPort.cxx @@ -566,7 +566,9 @@ void GraphicsView_ViewPort::zoom( double theX1, double theY1, double theX2, doub aTransform.scale( aZoom, aZoom ); double aM11 = aTransform.m11(); double aM22 = aTransform.m22(); - if( qMax( aM11, aM22 ) < 400 ) // to prevent a crash at the value of 500 + // increasing of diagonal coefficients (>300) leads to a crash sometimes + // at the values of 100 some primitives are drawn incorrectly + if( qMax( aM11, aM22 ) < 100 ) setTransform( aTransform ); myIsTransforming = false;