Fix TEST_BIDI option
This commit is contained in:
parent
f97db81ce3
commit
6e0b96c21f
@ -147,9 +147,10 @@ FriBidiChar* toFribidiChar(const wchar_t* str)
|
|||||||
// Prepend a character that forces RTL style
|
// Prepend a character that forces RTL style
|
||||||
FriBidiChar *tmp = result;
|
FriBidiChar *tmp = result;
|
||||||
result = new FriBidiChar[++length + 1];
|
result = new FriBidiChar[++length + 1];
|
||||||
std::memcpy(result + 1, tmp, length * sizeof(FriBidiChar));
|
memcpy(result + 1, tmp, length * sizeof(FriBidiChar));
|
||||||
result[0] = L'\u202E';
|
result[0] = L'\u202E';
|
||||||
freeFribidiChar(tmp);
|
if (sizeof(wchar_t) != sizeof(FriBidiChar))
|
||||||
|
delete[] tmp;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user