]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #87: Fix for sketcher object
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 30 Jul 2014 14:43:34 +0000 (18:43 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 30 Jul 2014 14:43:34 +0000 (18:43 +0400)
src/SketchPlugin/SketchPlugin_Sketch.cpp

index 144caa3369e54ea25e8f89a6c54052a4fcf229b6..b2541dd8ed20685860f71cf841ec4406d14df8ad 100644 (file)
@@ -174,8 +174,7 @@ FeaturePtr SketchPlugin_Sketch::getFeature(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);
     }
   }