From: nds Date: Sat, 26 Dec 2015 18:36:14 +0000 (+0300) Subject: #1188 - crash when delete segmnet used in rotation/translation X-Git-Tag: V_2.1.0~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=98f5b15d6867ba7f91ee3f9a7ca82e05548dcc71;p=modules%2Fshaper.git #1188 - crash when delete segmnet used in rotation/translation --- 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); }