core.text: fix line_height of last line in label (dont add extra space below label on last line)

This commit is contained in:
Thomas Hansen 2012-11-26 16:09:23 -06:00
parent d4ef9c3e92
commit a9db7f4014
1 changed files with 3 additions and 0 deletions

View File

@ -331,6 +331,9 @@ class LabelBase(object):
if not real:
self._internal_height = sum([size[1] for size, glyphs in lines])
ll_h = lines[-1][0][1]
lh_offset = ll_h - (ll_h / self.options['line_height'])
self._internal_height = self._internal_height - lh_offset
h = self._internal_height if uh is None else uh
w = uw
else: