From 9d767228fc49cf48bdfe058fa9e9c400c812addd Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 30 Jul 2014 18:43:34 +0400 Subject: [PATCH] Issue #87: Fix for sketcher object --- src/SketchPlugin/SketchPlugin_Sketch.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } } -- 2.39.2