From: ptv Date: Thu, 10 Nov 2005 12:58:02 +0000 (+0000) Subject: add protection to avoid exception X-Git-Tag: V3_1_0a3~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8ee069e649941921694a507982755f9e7755c39a;p=modules%2Fgui.git add protection to avoid exception --- diff --git a/src/GLViewer/GLViewer_Viewer2d.cxx b/src/GLViewer/GLViewer_Viewer2d.cxx index 74114b3f4..c7a1d297d 100644 --- a/src/GLViewer/GLViewer_Viewer2d.cxx +++ b/src/GLViewer/GLViewer_Viewer2d.cxx @@ -230,6 +230,8 @@ void GLViewer_Viewer2d::activateDrawers( QValueList& theObject aDrawer = (*oit)->getDrawer(); } } + if ( !aDrawer ) + continue; aDrawer->addObject( (*oit) ); int aPriority = aDrawer->getPriority();