Skip to content
Snippets Groups Projects
Commit b932d5e9 authored by Gilbert L Bernstein's avatar Gilbert L Bernstein
Browse files

Update wbemocks.py fix create_text

parent a1921969
No related branches found
No related tags found
No related merge requests found
......@@ -436,7 +436,10 @@ class MockCanvas:
else:
cmd = "create_text: x={} y={} text={}".format(x, y, text)
self._draw(cmd)
y2 = y + font.metrics("linespace")
if font is None:
y2 = y
else:
y2 = y + font.metrics("linespace")
if self._allow("create_text", y2): print(cmd)
def pack(self, expand=None, fill=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment