Fix 3505 Special Chars in Path
- thanks to @marams for the patch.
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user