From 37b170dd19a5a9dda3185e36cdcbd6a7855481d2 Mon Sep 17 00:00:00 2001 From: Witawat Date: Sun, 26 Dec 2021 15:22:02 +0700 Subject: [PATCH] Fix bug < > and _ --- makeLabelGUI.ulp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makeLabelGUI.ulp b/makeLabelGUI.ulp index d3da83a..9037d00 100644 --- a/makeLabelGUI.ulp +++ b/makeLabelGUI.ulp @@ -17,9 +17,9 @@ string s; string label; int selectedStart = 0; -string startTag[] = {" ", "(", "/", "\\", ">", "["}; +string startTag[] = {" ", "(", "/", "\\", "<", ">", "["}; int selectedEnd = 0; -string endTag[] = {" ", ")", "/", "\\", "<", "]"}; +string endTag[] = {" ", ")", "/", "\\", "<", ">", "]"}; real scaleFactor = 0.04; int selectedLayer = 2; string layers[] = {"1 -Top", "2 - Bottom", "21 - tPlace", "22 - bPlace", "25 - tNames", "26 - bNames"}; @@ -381,7 +381,7 @@ void createLabel() s += temp; } - commandToRun += " & " + s + startTag[selectedStart] + label + endTag[selectedEnd]; + commandToRun += " & " + s + '"' + startTag[selectedStart] + label + endTag[selectedEnd] + '"'; //dlgMessageBox(commandToRun); //uncomment to see output command SaveConfigSettings();