Mercurial > hg > octave-nkf
changeset 20681:25caa0deaabb
Fix multi-line text bounding box when using subscripts (bug #45508)
* txt_eng_ft.cc (ft_render::update_line_bbox): use the bounding box of the current line, not the first line.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sun, 23 Aug 2015 14:55:01 +0200 |
parents | 784ed55fdde8 |
children | 2d415c68213f |
files | libinterp/corefcn/txt-eng-ft.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/txt-eng-ft.cc +++ b/libinterp/corefcn/txt-eng-ft.cc @@ -438,7 +438,7 @@ int asc = font.get_face ()->size->metrics.ascender >> 6; int desc = font.get_face ()->size->metrics.descender >> 6; - Matrix& bb = line_bbox.front (); + Matrix& bb = line_bbox.back (); if ((yoffset + desc) < bb(1)) {