]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1348 Fatal error when edit sketch
authornds <nds@opencascade.com>
Tue, 1 Mar 2016 07:32:36 +0000 (10:32 +0300)
committernds <nds@opencascade.com>
Tue, 1 Mar 2016 07:32:36 +0000 (10:32 +0300)
src/SketcherPrs/SketcherPrs_Mirror.cpp

index 7218e9ead3043018dd2cc8336ef35e36319be19c..a1fea6f4d3d91fde3a20f69c68ffbaeac95a1fbe 100644 (file)
@@ -89,6 +89,8 @@ bool SketcherPrs_Mirror::updatePoints(double theStep) const
   // Get position of each mirrored object
   for (i = 0; i < aNb; i++) {
     aObj = anAttrC->object(i);
+    if (SketcherPrs_Tools::getShape(aObj).get() == NULL)
+      continue;
     aP1 = aMgr->getPosition(aObj, this, theStep);
     myPntArray->SetVertice(aNb + i + 1, aP1);
   }