diff options
author | wm4 <wm4@nowhere> | 2015-09-24 10:34:19 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-24 10:34:34 +0200 |
commit | 17123ee650212fbb1a1cc828666df1a5c06a4b90 (patch) | |
tree | ec93607f8f8c85914f0aa407050388bbe04c4d26 | |
parent | ecb796dd2db4a0809c1e9cef3b40ab4757ec0417 (diff) | |
download | libass-17123ee650212fbb1a1cc828666df1a5c06a4b90.tar.bz2 libass-17123ee650212fbb1a1cc828666df1a5c06a4b90.tar.xz |
ass_font: fix broken loop condition
As pointed out in #198. This is certainly just a typo.
Fixes #198.
-rw-r--r-- | libass/ass_font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_font.c b/libass/ass_font.c index 7dd0e8c..0b924b5 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -192,7 +192,7 @@ static int add_face(ASS_FontSelector *fontsel, ASS_Font *font, uint32_t ch) // The font provider gave us a post_script name and is not sure // about the face index.. so use the postscript name to find the // correct face_index in the collection! - for (int i = 0; face->num_faces; i++) { + for (int i = 0; i < face->num_faces; i++) { FT_Done_Face(face); error = FT_New_Face(font->ftlibrary, path, i, &face); if (error) { |