From 12b8c788e3147019f9b95fe591a06038b5c77271 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 16 Jul 2014 10:01:42 +0400 Subject: [PATCH] Using part's document --- src/XGUI/XGUI_ContextMenuMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2