From: ouv Date: Thu, 2 Sep 2010 08:41:18 +0000 (+0000) Subject: Minor fix X-Git-Tag: DIAGRAM_0_1~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=342879a0b022677033a35e0475c2d52b1bbcdde2;p=modules%2Fgui.git Minor fix --- diff --git a/src/GLViewer/GLViewer_Grid.cxx b/src/GLViewer/GLViewer_Grid.cxx index 56b894943..05c21b49e 100644 --- a/src/GLViewer/GLViewer_Grid.cxx +++ b/src/GLViewer/GLViewer_Grid.cxx @@ -358,6 +358,10 @@ bool GLViewer_Grid::initList() if( myYSize == (GLfloat)0.0 ) myYSize = (GLfloat)0.1; + if( myGridWidth == (GLfloat)0.0 || + myGridHeight == (GLfloat)0.0 ) + return false; + label: if( ( myXSize >= myGridWidth / myScaleRatio ) && ( myYSize >= myGridHeight / myScaleRatio ) )