From: gdd Date: Fri, 15 Jun 2012 14:20:04 +0000 (+0000) Subject: Fix case where "shape" is None X-Git-Tag: V6_6_0a1~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f863a02b7e504cb57dcd42d86d0493ce3c61955b;p=modules%2Fgui.git Fix case where "shape" is None --- diff --git a/src/SalomeApp/pluginsdemo/xalome.py b/src/SalomeApp/pluginsdemo/xalome.py index ad221cbc7..724afa40c 100644 --- a/src/SalomeApp/pluginsdemo/xalome.py +++ b/src/SalomeApp/pluginsdemo/xalome.py @@ -139,7 +139,8 @@ def deleteShape(study,shapeStudyEntry): """ eraseShape(shapeStudyEntry) shape = removeFromStudy(study, shapeStudyEntry) - shape.Destroy() + if shape is not None: + shape.Destroy() #