]> git.sesse.net Git - vlc/commitdiff
Fixed text rendering with empty line in freetype.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 6 Sep 2011 19:58:00 +0000 (21:58 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 12 Sep 2011 19:37:28 +0000 (21:37 +0200)
modules/text_renderer/freetype.c

index 10c81508c4ea2092df760b13df519e720a40d312..bf32c825b720d5f061d2969c0dfc1774ef0978f5 100644 (file)
@@ -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) {