From f197dd22cda451002bdfbf00bf83083580f8fb5b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 23 Jun 2016 08:23:32 +0100 Subject: [PATCH] Fixed possible divide by zero --- src/osgWidget/Box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgWidget/Box.cpp b/src/osgWidget/Box.cpp index 76c53833f..b5c1e85c6 100644 --- a/src/osgWidget/Box.cpp +++ b/src/osgWidget/Box.cpp @@ -41,7 +41,7 @@ void Box::_resizeImplementation(point_type w, point_type h) { // If we have any widgets that agree to fill and there has been an honest resize // request, handle it here. The first case handles resizes where we have AT LEAST // as many pixels to fill as we have objects. - if(numFill > 0.0f && (w != 0.0f || h != 0.0f)) { + if(inumFill>0 && (w != 0.0f || h != 0.0f)) { unsigned int cur = 0; for(Iterator i = begin(); i != end(); i++) if(i->valid() && i->get()->canFill()) {