From cdaa4278566593805bcbc9994da74df93baec066 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 14 Sep 2015 10:32:42 +0300 Subject: [PATCH] Stabilization of the application: to avoid recomputation of invalid parameters (undo in the issue #916) --- src/SketcherPrs/SketcherPrs_SymbolPrs.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.39.2