From: vsv Date: Tue, 29 Jul 2014 14:41:04 +0000 (+0400) Subject: Issue #87: editing of sketch created in sub-documents X-Git-Tag: V_0.4.4~130 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cfeda007944ce6924be35da1e6e22da00b8fc009;p=modules%2Fshaper.git Issue #87: editing of sketch created in sub-documents --- 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); } }