diff options
Diffstat (limited to 'pango/mini-fribidi')
-rw-r--r-- | pango/mini-fribidi/fribidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/mini-fribidi/fribidi.c b/pango/mini-fribidi/fribidi.c index ec3900e4..e8c4c10f 100644 --- a/pango/mini-fribidi/fribidi.c +++ b/pango/mini-fribidi/fribidi.c @@ -150,7 +150,7 @@ run_length_encode_types (FriBidiCharType *char_type, gint type_len) current.pos = -1; for (i = 0; i <= type_len; i++) { - if (char_type[i] != current.type || i == type_len) + if (i == type_len || char_type[i] != current.type) { if (current.pos >= 0) { |