Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5eeda0e
)
Issue #1037 : do not find model indices for the same result. If selection mode is...
author
nds
<nds@opencascade.com>
Thu, 28 Apr 2016 13:31:21 +0000
(16:31 +0300)
committer
nds
<nds@opencascade.com>
Thu, 28 Apr 2016 13:31:21 +0000
(16:31 +0300)
src/XGUI/XGUI_SelectionMgr.cpp
patch
|
blob
|
history
diff --git
a/src/XGUI/XGUI_SelectionMgr.cpp
b/src/XGUI/XGUI_SelectionMgr.cpp
index 3f692ff25eec2f634c3676bb0c17dac6ae131983..8e614e30b0a0be71a9e36d1e1686b9f30a522e56 100755
(executable)
--- a/
src/XGUI/XGUI_SelectionMgr.cpp
+++ b/
src/XGUI/XGUI_SelectionMgr.cpp
@@
-145,7
+145,8
@@
void XGUI_SelectionMgr::onViewerSelection()
QList<ModuleBase_ViewerPrsPtr> aPresentations = selection()->getSelected(ModuleBase_ISelection::Viewer);
foreach(ModuleBase_ViewerPrsPtr aPrs, aPresentations) {
if (aPrs->object().get()) {
- aFeatures.append(aPrs->object());
+ if (!aFeatures.contains(aPrs->object()))
+ aFeatures.append(aPrs->object());
if (aPrs->shape().get()) {
aResult = std::dynamic_pointer_cast<ModelAPI_Result>(aPrs->object());
if (aResult.get()) {