Commit 87901b7c authored by sumpfralle's avatar sumpfralle

fix rendering of strings containing only whitespace


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@860 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 0b37abfa
...@@ -152,6 +152,8 @@ class Charset(object): ...@@ -152,6 +152,8 @@ class Charset(object):
for polygon in current_line.get_polygons(): for polygon in current_line.get_polygons():
result.append(polygon) result.append(polygon)
# the text should be just above the x axis # the text should be just above the x axis
result.shift(0, -result.miny, 0) if result.miny:
# don't shift, if result.miny is None (e.g.: no content) or zero
result.shift(0, -result.miny, 0)
return result return result
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment