From 940c1bd08195ce53b997cc9f92bb87816f3952fe Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 4 Mar 2011 10:08:28 +0000 Subject: [PATCH] Minor fix --- src/GraphicsView/GraphicsView_ViewPort.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.2