]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix case where "shape" is None
authorgdd <gdd>
Fri, 15 Jun 2012 14:20:04 +0000 (14:20 +0000)
committergdd <gdd>
Fri, 15 Jun 2012 14:20:04 +0000 (14:20 +0000)
src/SalomeApp/pluginsdemo/xalome.py

index ad221cbc7933287179c49b943abb5f236af2e604..724afa40c9ba39a87965cc8e3b3b6f2e8112505e 100644 (file)
@@ -139,7 +139,8 @@ def deleteShape(study,shapeStudyEntry):
     """
     eraseShape(shapeStudyEntry)
     shape = removeFromStudy(study, shapeStudyEntry)
-    shape.Destroy()
+    if shape is not None:
+      shape.Destroy()
     
 
 #