Fix 3505 Special Chars in Path

- thanks to @marams for the patch.
This commit is contained in:
wandererfan
2018-06-09 10:11:28 -04:00
committed by wmayer
parent 6c4e4b35af
commit 79e290ffb5

View File

@@ -208,7 +208,7 @@ void CmdTechDrawNewPage::activated(int iMsg)
//why is "Template" property set twice? -wf
// once to set DrawSVGTemplate.Template to OS template file name
doCommand(Doc,"App.activeDocument().%s.Template = '%s'",TemplateName.c_str(), templateFileName.toStdString().c_str());
doCommand(Doc,"App.activeDocument().%s.Template = \"%s\"",TemplateName.c_str(), templateFileName.toUtf8().constData());
// once to set Page.Template to DrawSVGTemplate.Name
doCommand(Doc,"App.activeDocument().%s.Template = App.activeDocument().%s",PageName.c_str(),TemplateName.c_str());
// consider renaming DrawSVGTemplate.Template property?