From 342879a0b022677033a35e0475c2d52b1bbcdde2 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 2 Sep 2010 08:41:18 +0000 Subject: [PATCH] Minor fix --- src/GLViewer/GLViewer_Grid.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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 ) ) -- 2.39.2