From: Laurent Aimar Date: Tue, 6 Sep 2011 19:58:00 +0000 (+0200) Subject: Fixed text rendering with empty line in freetype. X-Git-Tag: 1.2.0-pre1~756 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d43dfe579d33c51b401f400b2c7af764380a78cf;p=vlc Fixed text rendering with empty line in freetype. --- diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c index 10c81508c4..bf32c825b7 100644 --- a/modules/text_renderer/freetype.c +++ b/modules/text_renderer/freetype.c @@ -2180,7 +2180,8 @@ static int ProcessLines( filter_t *p_filter, /* Update our baseline */ if( i_face_height_previous > 0 ) i_base_line += __MAX(i_face_height, i_face_height_previous); - i_face_height_previous = i_face_height; + if( i_face_height > 0 ) + i_face_height_previous = i_face_height; /* Update the line bbox with the actual base line */ if (line_bbox.yMax > line_bbox.yMin) {