From 69ff21c1bc1af665be9419918f64f5a7d1878cbd Mon Sep 17 00:00:00 2001 From: asl Date: Tue, 18 Aug 2015 12:18:16 +0300 Subject: [PATCH] Issue #856: "show parent feature" should be available only on result bodies --- src/PartSet/PartSet_Module.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 8541f8922..c4410ee75 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -47,6 +47,7 @@ #include #include #include +#include #include #include @@ -830,7 +831,7 @@ void PartSet_Module::addObjectBrowserMenu(QMenu* theMenu) const theMenu->addAction(myMenuMgr->action("EDIT_CMD")); } - ResultPtr aResult = std::dynamic_pointer_cast(aObject); + ResultBodyPtr aResult = std::dynamic_pointer_cast(aObject); if( aResult.get() ) { theMenu->addAction(myMenuMgr->action("SELECT_PARENT_CMD")); -- 2.39.2