From: nds Date: Fri, 26 Feb 2016 18:20:12 +0000 (+0300) Subject: crash fix: mirror (line, axis of sketch), select with rectangle, delete X-Git-Tag: V_2.2.0~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=51f9a2d4ddb07cb536d1bfef694995b81e4079af;p=modules%2Fshaper.git crash fix: mirror (line, axis of sketch), select with rectangle, delete --- diff --git a/src/SketcherPrs/SketcherPrs_Mirror.cpp b/src/SketcherPrs/SketcherPrs_Mirror.cpp index 499cfc7a2..7218e9ead 100644 --- a/src/SketcherPrs/SketcherPrs_Mirror.cpp +++ b/src/SketcherPrs/SketcherPrs_Mirror.cpp @@ -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); }