From cfeda007944ce6924be35da1e6e22da00b8fc009 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 29 Jul 2014 18:41:04 +0400 Subject: [PATCH] Issue #87: editing of sketch created in sub-documents --- src/ModuleBase/ModuleBase_Tools.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index d3dd6f7ee..7da2d12ad 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -27,8 +27,7 @@ FeaturePtr feature(ObjectPtr theObject) if (!aFeature) { ResultPtr aResult = boost::dynamic_pointer_cast(theObject); if (aResult) { - PluginManagerPtr aMgr = ModelAPI_PluginManager::get(); - DocumentPtr aDoc = aMgr->rootDocument(); + DocumentPtr aDoc = aResult->document(); return aDoc->feature(aResult); } } -- 2.39.2