From 98f5b15d6867ba7f91ee3f9a7ca82e05548dcc71 Mon Sep 17 00:00:00 2001 From: nds Date: Sat, 26 Dec 2015 21:36:14 +0300 Subject: [PATCH] #1188 - crash when delete segmnet used in rotation/translation --- src/SketcherPrs/SketcherPrs_Transformation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SketcherPrs/SketcherPrs_Transformation.cpp b/src/SketcherPrs/SketcherPrs_Transformation.cpp index 8639c3bb0..cd6f54a76 100644 --- a/src/SketcherPrs/SketcherPrs_Transformation.cpp +++ b/src/SketcherPrs/SketcherPrs_Transformation.cpp @@ -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); } -- 2.39.2