diff options
author | glx <glx@openttd.org> | 2010-02-09 18:37:19 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2010-02-09 18:37:19 +0000 |
commit | fb207873c5efadde119fe57a0026aba13e564547 (patch) | |
tree | 1b94870334f6ad461d2f2fb097f16ae0b4f6f7a5 /src | |
parent | e582d21981c7cce3b235f0ca133430d1f95f7b8c (diff) | |
download | openttd-fb207873c5efadde119fe57a0026aba13e564547.tar.xz |
(svn r19067) -Fix [FS#3604]: remove Bidi control characters from the reordered text
Diffstat (limited to 'src')
-rw-r--r-- | src/gfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp index e798c97fa..c8e9229f2 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -314,7 +314,7 @@ static UChar *HandleBiDiAndArabicShapes(UChar *buffer) if (para == NULL) return buffer; ubidi_setPara(para, input_output, (int32_t)length, _dynlang.text_dir == TD_RTL ? UBIDI_DEFAULT_RTL : UBIDI_DEFAULT_LTR, NULL, &err); - ubidi_writeReordered(para, intermediate, (int32_t)length, 0, &err); + ubidi_writeReordered(para, intermediate, (int32_t)length, UBIDI_REMOVE_BIDI_CONTROLS, &err); length = u_shapeArabic(intermediate, (int32_t)length, input_output, lengthof(input_output), U_SHAPE_TEXT_DIRECTION_VISUAL_LTR | U_SHAPE_LETTERS_SHAPE, &err); ubidi_close(para); |