From: mpv Date: Mon, 14 Sep 2015 07:32:42 +0000 (+0300) Subject: Stabilization of the application: to avoid recomputation of invalid parameters (undo... X-Git-Tag: V_1.4.0~77 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cdaa4278566593805bcbc9994da74df93baec066;p=modules%2Fshaper.git Stabilization of the application: to avoid recomputation of invalid parameters (undo in the issue #916) --- diff --git a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp index 84a0f9884..ee319ebc2 100644 --- a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp +++ b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp @@ -392,6 +392,11 @@ void SketcherPrs_SymbolPrs::ComputeSelection(const Handle(SelectMgr_Selection)& void SketcherPrs_SymbolPrs::Render(const Handle(OpenGl_Workspace)& theWorkspace) const { + // do not update presentation for invalid or already removed objects: the presentation + // should be removed soon + if (!myConstraint->data().get() || !myConstraint->data()->isValid()) + return; + const OpenGl_AspectMarker* anAspectMarker = theWorkspace->AspectMarker(Standard_True); const Handle(OpenGl_Context)& aCtx = theWorkspace->GetGlContext(); Handle(OpenGl_View) aView = theWorkspace->ActiveView();