]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #790: prevent crash on detach
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 25 Aug 2015 12:32:43 +0000 (15:32 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 25 Aug 2015 12:32:58 +0000 (15:32 +0300)
src/PartSet/PartSet_MenuMgr.cpp

index 9b5919c20d411df18d759c8cbe87ccc36781c5ee..0d8c0cc9a5f1cec77ec2e3f3772e9e8bedce9530 100644 (file)
@@ -291,6 +291,8 @@ void PartSet_MenuMgr::onLineDetach(QAction* theAction)
       } else {
         aPnt = PartSet_Tools::getPoint(aConstrFeature,
                                        SketchPlugin_ConstraintCoincidence::ENTITY_B());
+        if (aPnt.get() == NULL)
+          return;
         aP = aPnt->impl<gp_Pnt>();
         if (aOrig->isEqual(aPnt)) {
           aToDelFeatures.append(aConstrFeature);