]> granicus.if.org Git - libass/commitdiff
shaper: always use neutral base direction
authorGrigori Goronzy <greg@blackbox>
Fri, 8 Jul 2011 16:32:16 +0000 (18:32 +0200)
committerGrigori Goronzy <greg@blackbox>
Fri, 8 Jul 2011 16:32:16 +0000 (18:32 +0200)
libass/ass_shaper.c

index 24f5f00d00d340c626cd6b77d152d7e372ec0c78..5631be2c5e27bfc5f105b6567d9f1bed1fb6a9b4 100644 (file)
@@ -94,7 +94,7 @@ void ass_shaper_reorder(TextInfo *text_info, FriBidiCharType *ctypes,
                         FriBidiLevel *emblevels, FriBidiStrIndex *cmap)
 {
     int i;
-    FriBidiParType dir = FRIBIDI_PAR_LTR;
+    FriBidiParType dir;
 
     // Initialize reorder map
     for (i = 0; i < text_info->length; i++)
@@ -104,6 +104,7 @@ void ass_shaper_reorder(TextInfo *text_info, FriBidiCharType *ctypes,
     for (i = 0; i < text_info->n_lines; i++) {
         LineInfo *line = text_info->lines + i;
         int level;
+        dir = FRIBIDI_PAR_ON;
 
         // FIXME: we should actually specify
         // the correct paragraph base direction