summaryrefslogtreecommitdiff
path: root/wx+/image_tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/image_tools.cpp')
-rwxr-xr-xwx+/image_tools.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/wx+/image_tools.cpp b/wx+/image_tools.cpp
index bb5cd6c3..1e63346a 100755
--- a/wx+/image_tools.cpp
+++ b/wx+/image_tools.cpp
@@ -6,6 +6,7 @@
#include "image_tools.h"
#include <zen/string_tools.h>
+#include <zen/zstring.h>
#include <wx/app.h>
@@ -150,9 +151,8 @@ wxImage zen::createImageFromText(const wxString& text, const wxFont& font, const
//for some reason wxDC::DrawText messes up "weak" bidi characters even when wxLayout_RightToLeft is set! (--> arrows in hebrew/arabic)
//=> use mark characters instead:
- const wchar_t rtlMark = L'\u200F'; //UTF-8: E2 80 8F
if (wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft)
- textFmt = rtlMark + textFmt + rtlMark;
+ textFmt = RTL_MARK + textFmt + RTL_MARK;
const std::vector<std::pair<wxString, wxSize>> lineInfo = getTextExtentInfo(textFmt, font);
bgstack15