]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #87: editing of sketch created in sub-documents
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 29 Jul 2014 14:41:04 +0000 (18:41 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 29 Jul 2014 14:41:04 +0000 (18:41 +0400)
src/ModuleBase/ModuleBase_Tools.cpp

index d3dd6f7ee16f288558d95a371f384d3100181d92..7da2d12ad95cc3245ee26386559153956893370d 100644 (file)
@@ -27,8 +27,7 @@ FeaturePtr feature(ObjectPtr theObject)
   if (!aFeature) {
     ResultPtr aResult = boost::dynamic_pointer_cast<ModelAPI_Result>(theObject);
     if (aResult) {
-      PluginManagerPtr aMgr = ModelAPI_PluginManager::get();
-      DocumentPtr aDoc = aMgr->rootDocument();
+      DocumentPtr aDoc = aResult->document();
       return aDoc->feature(aResult);
     }
   }