From: Joogab Yun Date: Thu, 29 Nov 2018 04:56:01 +0000 (+0900) Subject: Changed the return type of GetBidiCharacterDirection. X-Git-Tag: dali_1.3.53~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8b68bd1948693a23a917884ff97706466959c63;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Changed the return type of GetBidiCharacterDirection. ex) When I run the sample below, the direction of the brackets is wrong. TextLabel label = TextLabel::New("الدفع التالي: $0.79 (2018/12/29)"); Change-Id: I766fcf5d2176783a9bf1841595f2b08ffe1f9186 --- diff --git a/dali/internal/text/text-abstraction/bidirectional-support-impl.cpp b/dali/internal/text/text-abstraction/bidirectional-support-impl.cpp index 29bd3b9..2f5e7ab 100755 --- a/dali/internal/text/text-abstraction/bidirectional-support-impl.cpp +++ b/dali/internal/text/text-abstraction/bidirectional-support-impl.cpp @@ -74,21 +74,23 @@ namespace switch( characterDirection ) { case FRIBIDI_TYPE_LTR: // Left-To-Right letter. - case FRIBIDI_TYPE_EN: // European Numeral. - case FRIBIDI_TYPE_AN: // Arabic Numeral. - case FRIBIDI_TYPE_ES: // European number Separator. - case FRIBIDI_TYPE_ET: // European number Terminator. { return LEFT_TO_RIGHT; } - case FRIBIDI_TYPE_RTL: // Right-To-Left letter. case FRIBIDI_TYPE_AL: // Arabic Letter. + case FRIBIDI_TYPE_RTL: // Right-To-Left letter. { return RIGHT_TO_LEFT; } + case FRIBIDI_TYPE_AN: // Arabic Numeral. + case FRIBIDI_TYPE_ES: // European number Separator. + case FRIBIDI_TYPE_ET: // European number Terminator. + case FRIBIDI_TYPE_EN: // European Numeral. + default : + { + return NEUTRAL; + } } - - return NEUTRAL; } }