Fix for bidirectional support. 12/36612/3
authorVictor Cebollada <v.cebollada@samsung.com>
Tue, 10 Mar 2015 16:53:28 +0000 (16:53 +0000)
committerVictor Cebollada <v.cebollada@samsung.com>
Thu, 12 Mar 2015 09:10:20 +0000 (09:10 +0000)
  The text unicodes were pased to the fribidi_get_par_embedding_levels()
  and the fribidi_get_par_direction() instead of the character's types.

Change-Id: I59eb4a49b073bfa849cd3d62fa83b75ac9ea71a8
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
text/dali/internal/text-abstraction/bidirectional-support-impl.cpp

index a03d721ecd2b32e06f0b744e57d5a2eea34450ca..1274c009653e18c9f7aa0a632b6370d174acf0f0 100644 (file)
@@ -80,10 +80,10 @@ struct BidirectionalSupport::Plugin
     fribidi_get_bidi_types( paragraph, numberOfCharacters, bidirectionalInfo->characterTypes );
 
     // Retrieve the paragraph's direction.
-    bidirectionalInfo->paragraphDirection = fribidi_get_par_direction( paragraph, numberOfCharacters );
+    bidirectionalInfo->paragraphDirection = fribidi_get_par_direction( bidirectionalInfo->characterTypes, numberOfCharacters );
 
     // Retrieve the embedding levels.
-    fribidi_get_par_embedding_levels( paragraph, numberOfCharacters, &bidirectionalInfo->paragraphDirection, bidirectionalInfo->embeddedLevels );
+    fribidi_get_par_embedding_levels( bidirectionalInfo->characterTypes, numberOfCharacters, &bidirectionalInfo->paragraphDirection, bidirectionalInfo->embeddedLevels );
 
     // Store the bidirectional info and return the index.
     BidiInfoIndex index = 0u;