From ea8a145b59f3424677b35646e35f6aa96c04fa2d Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 6 Apr 2015 12:30:38 +0300 Subject: [PATCH] Fix for selection --- src/SketcherPrs/SketcherPrs_SymbolPrs.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp index a577d40ee..20fc780a7 100644 --- a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp +++ b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp @@ -14,6 +14,7 @@ #include #include +#include #include #include #include @@ -419,8 +420,10 @@ void SketcherPrs_SymbolPrs::Render(const Handle(OpenGl_Workspace)& theWorkspace) theWorkspace->EnableTexture (aTextureBack); aCtx->BindProgram (NULL); - // Update selection position - GetContext()->RecomputeSelectionOnly(this); + // Update selection position only if there is no selected object + // because it can corrupt selection of other objects + if ((GetContext()->NbCurrents() == 0) && (GetContext()->NbSelected() == 0)) + GetContext()->RecomputeSelectionOnly(this); } -- 2.39.2