diff --git a/src/utils/translation.cpp b/src/utils/translation.cpp index e131882cd..46ceda190 100644 --- a/src/utils/translation.cpp +++ b/src/utils/translation.cpp @@ -424,8 +424,7 @@ bool Translations::isRTLText(const wchar_t *in_ptr) // Declare as RTL if one character is RTL for (std::size_t i = 0; i < length; i++) { - if (types[i] == FRIBIDI_TYPE_RTL || - types[i] == FRIBIDI_TYPE_RLO) + if (types[i] & FRIBIDI_MASK_RTL) { delete[] types; return true;