]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
crash fix: mirror (line, axis of sketch), select with rectangle, delete
authornds <nds@opencascade.com>
Fri, 26 Feb 2016 18:20:12 +0000 (21:20 +0300)
committernds <nds@opencascade.com>
Fri, 26 Feb 2016 18:20:12 +0000 (21:20 +0300)
src/SketcherPrs/SketcherPrs_Mirror.cpp

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