X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Mirror.cpp;h=2c680a64aaf7aae5a882f65c920772e048a3b382;hb=d3883990177d27a12b8a2278cdbb82250ff19b79;hp=dca445bfdac2d94c64b359a0ee203cbef55dbf6b;hpb=79b1a844d2efcc1b4c7acf43c27c97aa3accd8da;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Mirror.cpp b/src/SketcherPrs/SketcherPrs_Mirror.cpp index dca445bfd..2c680a64a 100644 --- a/src/SketcherPrs/SketcherPrs_Mirror.cpp +++ b/src/SketcherPrs/SketcherPrs_Mirror.cpp @@ -52,23 +52,11 @@ bool SketcherPrs_Mirror::updatePoints(double theStep) const gp_Pnt aP1; for (i = 0; i < aNb; i++) { aObj = anAttrB->object(i); - if (!aObj.get()) // TODO:empty_result - // this check should be removed here after the result flush is corrected - // the problem is, that feature::execute() flushes redisplay by each result creation - // but it is possible(e.g. in the sketch circle, that there should be more than one result. - // Here, crash happens, because the second result is not created yet - continue; aP1 = aMgr->getPosition(aObj, this, theStep); myPntArray->SetVertice(i + 1, aP1); } for (i = 0; i < aNb; i++) { aObj = anAttrC->object(i); - if (!aObj.get()) // TODO:empty_result - // this check should be removed here after the result flush is corrected - // the problem is, that feature::execute() flushes redisplay by each result creation - // but it is possible(e.g. in the sketch circle, that there should be more than one result. - // Here, crash happens, because the second result is not created yet - continue; aP1 = aMgr->getPosition(aObj, this, theStep); myPntArray->SetVertice(aNb + i + 1, aP1); }