From: ouv Date: Fri, 19 Sep 2014 09:03:31 +0000 (+0400) Subject: 0002304: Surface grid is destroyed X-Git-Tag: CTH_1_10_b~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=db66a969800b3186fb247ac994b93895ae5f2634;p=modules%2Fgui.git 0002304: Surface grid is destroyed --- diff --git a/src/Plot3d/Plot3d_ViewWindow.cxx b/src/Plot3d/Plot3d_ViewWindow.cxx index 57561d443..8015fd046 100644 --- a/src/Plot3d/Plot3d_ViewWindow.cxx +++ b/src/Plot3d/Plot3d_ViewWindow.cxx @@ -856,6 +856,13 @@ void Plot3d_ViewWindow::NormalizeSurfaces( const bool theIsRepaint ) aScale[0] = fabs( aDX ) > DBL_EPSILON ? 1.0 / aDX : 1.0; aScale[1] = fabs( aDY ) > DBL_EPSILON ? 1.0 / aDY : 1.0; aScale[2] = fabs( aDZ ) > DBL_EPSILON ? 1.0 / aDZ : 1.0; + + // 0002304: Surface grid is destroyed + static double aMaxLimit = 1e8; // empiric value + aScale[0] = qMin( aScale[0], aMaxLimit ); + aScale[1] = qMin( aScale[1], aMaxLimit ); + aScale[2] = qMin( aScale[2], aMaxLimit ); + SetScale( aScale, false ); if( theIsRepaint )