summaryrefslogtreecommitdiff
path: root/src/gfx_layout.cpp
diff options
context:
space:
mode:
authorpnda <43609023+ThePNDA@users.noreply.github.com>2019-04-06 21:03:20 +0200
committerMichael Lutz <michi@icosahedron.de>2019-07-07 18:30:51 +0200
commita35b43ce935aa421bf63724864e247eba1249ce1 (patch)
treead38b7e8be015eb868fa25321baa630ead9695c8 /src/gfx_layout.cpp
parent6f28a0c0510246e384b557afee98bf868bed9373 (diff)
downloadopenttd-a35b43ce935aa421bf63724864e247eba1249ce1.tar.xz
Fix #6666: Mismatched parentheses in RTL languages
Diffstat (limited to 'src/gfx_layout.cpp')
-rw-r--r--src/gfx_layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp
index 74a2a7759..4f8b3b621 100644
--- a/src/gfx_layout.cpp
+++ b/src/gfx_layout.cpp
@@ -208,7 +208,7 @@ public:
LEErrorCode status = LE_NO_ERROR;
/* ParagraphLayout does not copy "buff", so it must stay valid.
* "runs" is copied according to the ICU source, but the documentation does not specify anything, so this might break somewhen. */
- icu::ParagraphLayout *p = new icu::ParagraphLayout(buff, length, &runs, nullptr, nullptr, nullptr, _current_text_dir == TD_RTL ? UBIDI_DEFAULT_RTL : UBIDI_DEFAULT_LTR, false, status);
+ icu::ParagraphLayout *p = new icu::ParagraphLayout(buff, length, &runs, nullptr, nullptr, nullptr, _current_text_dir == TD_RTL ? 1 : 0, false, status);
if (status != LE_NO_ERROR) {
delete p;
return nullptr;