]> git.sesse.net Git - vlc/commitdiff
freetype: remove unnecessary assert()
authorSalah-Eddin Shaban <salshaaban@gmail.com>
Mon, 2 Feb 2015 10:12:33 +0000 (10:12 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 4 Feb 2015 14:23:11 +0000 (15:23 +0100)
This assert() will fail when zero-width spaces are encountered and ignored.
It would also fail when GetGlyph() returns an error.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/text_renderer/freetype.c

index 050ace607f49a898a12521ad5a4cc7f641667edb..8d314fe0f1701941dcf0c8d71d8d1ede8ed430fb 100644 (file)
@@ -1520,7 +1520,6 @@ static int ProcessLines( filter_t *p_filter,
                     break;
                 }
 
-                assert( p_line->i_character_count == i_index - i_start);
                 p_line->p_character[p_line->i_character_count++] = (line_character_t){
                     .p_glyph = (FT_BitmapGlyph)glyph,
                     .p_outline = (FT_BitmapGlyph)outline,