X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Ftext%2Ftext-abstraction%2Fbidirectional-support-impl.cpp;h=4d389550d5a4df82f27660559a649921cfd38829;hb=refs%2Fchanges%2F65%2F176965%2F1;hp=10ce56d13c7f8a030536ff7b06ccf38f8067b131;hpb=0cfaf2c5ebb5ef9e0c7a392ed3b83b126dcdf49d;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/text/text-abstraction/bidirectional-support-impl.cpp b/dali/internal/text/text-abstraction/bidirectional-support-impl.cpp index 10ce56d..4d38955 100644 --- a/dali/internal/text/text-abstraction/bidirectional-support-impl.cpp +++ b/dali/internal/text/text-abstraction/bidirectional-support-impl.cpp @@ -24,7 +24,6 @@ // EXTERNAL INCLUDES #include #include -#include namespace Dali { @@ -153,12 +152,7 @@ struct BidirectionalSupport::Plugin bidirectionalInfo->paragraphDirection = fribidi_get_par_direction( bidirectionalInfo->characterTypes, numberOfCharacters ); // Retrieve the embedding levels. - if (fribidi_get_par_embedding_levels( bidirectionalInfo->characterTypes, numberOfCharacters, &bidirectionalInfo->paragraphDirection, bidirectionalInfo->embeddedLevels ) == 0) - { - free( bidirectionalInfo->characterTypes ); - delete bidirectionalInfo; - return 0; - } + fribidi_get_par_embedding_levels( bidirectionalInfo->characterTypes, numberOfCharacters, &bidirectionalInfo->paragraphDirection, bidirectionalInfo->embeddedLevels ); // Store the bidirectional info and return the index. BidiInfoIndex index = 0u; @@ -231,17 +225,14 @@ struct BidirectionalSupport::Plugin memcpy( embeddedLevels, bidirectionalInfo->embeddedLevels + firstCharacterIndex, embeddedLevelsSize ); // Reorder the line. - if (fribidi_reorder_line( flags, - bidirectionalInfo->characterTypes + firstCharacterIndex, - numberOfCharacters, - 0u, - bidirectionalInfo->paragraphDirection, - embeddedLevels, - NULL, - reinterpret_cast( visualToLogicalMap ) ) == 0) - { - DALI_LOG_ERROR("fribidi_reorder_line is failed\n"); - } + fribidi_reorder_line( flags, + bidirectionalInfo->characterTypes + firstCharacterIndex, + numberOfCharacters, + 0u, + bidirectionalInfo->paragraphDirection, + embeddedLevels, + NULL, + reinterpret_cast( visualToLogicalMap ) ); // Free resources. free( embeddedLevels );