From 779c8a4e43b26448fb38cc3f07f9fb946355b3cc Mon Sep 17 00:00:00 2001 From: Keith Sloan Date: Fri, 28 Apr 2017 13:28:02 +0100 Subject: [PATCH] Fix for null string and single blank string --- src/Mod/OpenSCAD/importCSG.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/OpenSCAD/importCSG.py b/src/Mod/OpenSCAD/importCSG.py index 3b3b5e332a..52d7e352be 100644 --- a/src/Mod/OpenSCAD/importCSG.py +++ b/src/Mod/OpenSCAD/importCSG.py @@ -1041,6 +1041,10 @@ def addValue(t,v,p): def p_text_action(p) : 'text_action : text LPAREN keywordargument_list RPAREN SEMICOL' + # If text string is null ignore + if p[3]['text'] == "" or p[3]['text'] == " " : + p[0] = [] + return t = 'text ( text="'+p[3]['text']+'"' t = addValue(t,'size',p) t = addString(t,'spacing',p)