Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WidgetMultiSelector preparation to use ModelAPI_AttributeRefAttrList.
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_ISelection.cpp
diff --git
a/src/ModuleBase/ModuleBase_ISelection.cpp
b/src/ModuleBase/ModuleBase_ISelection.cpp
index 72f1e4df8337efcd78e60bbe2f48409855b611e5..d5c325558b186df333cc949b379e9a2fef344754 100644
(file)
--- a/
src/ModuleBase/ModuleBase_ISelection.cpp
+++ b/
src/ModuleBase/ModuleBase_ISelection.cpp
@@
-38,13
+38,12
@@
ResultPtr ModuleBase_ISelection::getResult(const ModuleBase_ViewerPrs& thePrs)
{
ResultPtr aResult;
{
ResultPtr aResult;
- if (!thePrs.owner().IsNull()) {
+ if (thePrs.object().get())
+ aResult = std::dynamic_pointer_cast<ModelAPI_Result>(thePrs.object());
+ else if (!thePrs.owner().IsNull()) {
ObjectPtr anObject = getSelectableObject(thePrs.owner());
aResult = std::dynamic_pointer_cast<ModelAPI_Result>(anObject);
}
ObjectPtr anObject = getSelectableObject(thePrs.owner());
aResult = std::dynamic_pointer_cast<ModelAPI_Result>(anObject);
}
- else {
- aResult = std::dynamic_pointer_cast<ModelAPI_Result>(thePrs.object());
- }
return aResult;
}
return aResult;
}