Mercurial > octave
changeset 26330:45cf2ada3e39 stable
Make sure text bounding box is high enough (bug #55328).
* ft-text-renderer.cc (ft_text_renderer::update_line_bbox): Increase the
bounding box height by 1 pixel.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Mon, 31 Dec 2018 18:07:09 +0100 |
parents | 1463d55540e6 |
children | 5f10217b562d |
files | libinterp/corefcn/ft-text-renderer.cc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/ft-text-renderer.cc Sun Dec 30 20:53:00 2018 -0800 +++ b/libinterp/corefcn/ft-text-renderer.cc Mon Dec 31 18:07:09 2018 +0100 @@ -663,7 +663,9 @@ { Matrix& bb = line_bbox.back (); bb(1) = m_ymin; - bb(3) = m_ymax - m_ymin; + // Add one pixel to the bbox height to avoid occasional text clipping. + // See bug #55328. + bb(3) = (m_ymax + 1) - m_ymin; if (m_deltax > 0) bb(2) += m_deltax; }