From: vsv Date: Wed, 16 Jul 2014 06:01:42 +0000 (+0400) Subject: Using part's document X-Git-Tag: V_0.4.4~182 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=12b8c788e3147019f9b95fe591a06038b5c77271;p=modules%2Fshaper.git Using part's document --- diff --git a/src/XGUI/XGUI_ContextMenuMgr.cpp b/src/XGUI/XGUI_ContextMenuMgr.cpp index 21fc9672b..62d3ebe62 100644 --- a/src/XGUI/XGUI_ContextMenuMgr.cpp +++ b/src/XGUI/XGUI_ContextMenuMgr.cpp @@ -108,7 +108,7 @@ QMenu* XGUI_ContextMenuMgr::objectBrowserMenu() const if (aObject) { ResultPartPtr aPart = boost::dynamic_pointer_cast(aObject); if (aPart) { - DocumentPtr aFeaDoc = aPart->document(); + DocumentPtr aFeaDoc = aPart->partDoc(); if (aMgr->currentDocument() == aFeaDoc) aMenu->addAction(action("DEACTIVATE_PART_CMD")); else