From 8a92953f2aff0e0a738fafa16dc92db513c71179 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Mon, 14 Feb 2022 10:49:35 +0100 Subject: [PATCH] TechDraw: Use Draft.get_svg instead of Draft.getSVG The Draft.getSVG has been renamed. Using it results in warnings in the Report view. The new function Draft.get_svg has the same signature. --- src/Mod/TechDraw/App/DrawViewDraft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/TechDraw/App/DrawViewDraft.cpp b/src/Mod/TechDraw/App/DrawViewDraft.cpp index df94df3dfc..ff7341d3ab 100644 --- a/src/Mod/TechDraw/App/DrawViewDraft.cpp +++ b/src/Mod/TechDraw/App/DrawViewDraft.cpp @@ -102,7 +102,7 @@ App::DocumentObjectExecReturn *DrawViewDraft::execute(void) std::string svgTail = getSVGTail(); std::string FeatName = getNameInDocument(); std::string SourceName = sourceObj->getNameInDocument(); - // Draft.getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direction=None,linestyle=None,color=None,linespacing=None,techdraw=False) + // Draft.get_svg(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direction=None,linestyle=None,color=None,linespacing=None,techdraw=False) std::stringstream paramStr; App::Color col = Color.getValue(); @@ -122,7 +122,7 @@ App::DocumentObjectExecReturn *DrawViewDraft::execute(void) // (Arch section, etc) // like Draft.makeDrawingView, but we don't need to create the actual document objects in Draft, just the svg. Base::Interpreter().runString("import Draft"); - Base::Interpreter().runStringArg("svgBody = Draft.getSVG(App.activeDocument().%s %s)", + Base::Interpreter().runStringArg("svgBody = Draft.get_svg(App.activeDocument().%s %s)", SourceName.c_str(),paramStr.str().c_str()); // Base::Interpreter().runString("print svgBody"); Base::Interpreter().runStringArg("App.activeDocument().%s.Symbol = '%s' + svgBody + '%s'",