]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1188 - crash when delete segmnet used in rotation/translation
authornds <nds@opencascade.com>
Sat, 26 Dec 2015 18:36:14 +0000 (21:36 +0300)
committernds <nds@opencascade.com>
Sat, 26 Dec 2015 18:36:14 +0000 (21:36 +0300)
src/SketcherPrs/SketcherPrs_Transformation.cpp

index 8639c3bb0351258ba7f42c3dc5c2f0ee858ed567..cd6f54a7697dbf104fc32164c0a7961dfaaa5d01 100644 (file)
@@ -62,6 +62,8 @@ bool SketcherPrs_Transformation::updatePoints(double theStep) const
   // Compute points of symbols
   for (i = 0; i < aNbB; i++) {
     aObj = anAttrB->object(i);
+    if (SketcherPrs_Tools::getShape(aObj).get() == NULL)
+      continue;
     aP1 = aMgr->getPosition(aObj, this, theStep);
     myPntArray->SetVertice(i + 1, aP1);
   }