# HG changeset patch # User Pantxo Diribarne # Date 1440334501 -7200 # Node ID 25caa0deaabbc33dc4756ce749cb8440fa5eee5c # Parent 784ed55fdde809561e3852ad291dd5bc91736b2d 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. diff -r 784ed55fdde8 -r 25caa0deaabb libinterp/corefcn/txt-eng-ft.cc --- a/libinterp/corefcn/txt-eng-ft.cc Mon Aug 31 12:59:36 2015 +0200 +++ b/libinterp/corefcn/txt-eng-ft.cc Sun Aug 23 14:55:01 2015 +0200 @@ -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)) {