From: vsv Date: Wed, 30 Jul 2014 14:43:34 +0000 (+0400) Subject: Issue #87: Fix for sketcher object X-Git-Tag: V_0.4.4~125^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9d767228fc49cf48bdfe058fa9e9c400c812addd;p=modules%2Fshaper.git Issue #87: Fix for sketcher object --- diff --git a/src/SketchPlugin/SketchPlugin_Sketch.cpp b/src/SketchPlugin/SketchPlugin_Sketch.cpp index 144caa336..b2541dd8e 100644 --- a/src/SketchPlugin/SketchPlugin_Sketch.cpp +++ b/src/SketchPlugin/SketchPlugin_Sketch.cpp @@ -174,8 +174,7 @@ FeaturePtr SketchPlugin_Sketch::getFeature(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); } }