From f863a02b7e504cb57dcd42d86d0493ce3c61955b Mon Sep 17 00:00:00 2001 From: gdd Date: Fri, 15 Jun 2012 14:20:04 +0000 Subject: [PATCH] Fix case where "shape" is None --- src/SalomeApp/pluginsdemo/xalome.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() # -- 2.39.2