diff options
author | cira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-07 02:08:06 +0000 |
---|---|---|
committer | cira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-07 02:08:06 +0000 |
commit | 8de794b1d52de9313b9c617ad1c04ec89036dbe3 (patch) | |
tree | 3c361ccdf8541d9901853ddd374fa6c8fa9d5af7 /app/l10n_util.cc | |
parent | e6e6ba4925feed48fbbd0568b07d8ccb6569eeee (diff) | |
download | chromium_src-8de794b1d52de9313b9c617ad1c04ec89036dbe3.zip chromium_src-8de794b1d52de9313b9c617ad1c04ec89036dbe3.tar.gz chromium_src-8de794b1d52de9313b9c617ad1c04ec89036dbe3.tar.bz2 |
We shouldn't use BIDI_DEFAULT_(RTL|LTR) if we know the directionality of the page, because we
won't like the result if string is mixed bidi (it may mark string as RTL instead of LTR if it starts with strong
RTL characters, even if the global direction is LTR).
TEST=Try entering Hebrew query in omnibox - Google Search text in suggested results should always be after "-"
not within a string (visible on items from history, so you need to click on one result first). Try typing "×הרון" in omnibox.
Review URL: http://codereview.chromium.org/372041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/l10n_util.cc')
-rw-r--r-- | app/l10n_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/l10n_util.cc b/app/l10n_util.cc index c04d3d5..07fbca8 100644 --- a/app/l10n_util.cc +++ b/app/l10n_util.cc @@ -1015,7 +1015,7 @@ UBool BiDiLineIterator::Open(const std::wstring& text, const std::wstring &text_utf16 = text; #endif // U_SIZEOF_WCHAR_T != 4 ubidi_setPara(bidi_, text_utf16.data(), static_cast<int>(text_utf16.length()), - right_to_left ? UBIDI_DEFAULT_RTL : UBIDI_DEFAULT_LTR, + right_to_left ? UBIDI_RTL : UBIDI_LTR, NULL, &error); return U_SUCCESS(error); } |