summaryrefslogtreecommitdiff
path: root/tools/genlayout.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/genlayout.py')
-rw-r--r--tools/genlayout.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/genlayout.py b/tools/genlayout.py
index f6003bd..b113e8e 100644
--- a/tools/genlayout.py
+++ b/tools/genlayout.py
@@ -25,6 +25,9 @@ def readsvg(filename):
mode = 'circle'
x = y = w = h = 0
name = None
+ elif line == "<text":
+ flush()
+ mode = None
if line.startswith('x="'): x = round(float(line.split('"')[1]))
if line.startswith('y="'): y = round(float(line.split('"')[1]))
if line.startswith('width="'): w = round(float(line.split('"')[1]))