diff options
author | Daniel Wilhelm <daniel@wili.li> | 2015-10-02 14:50:33 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2015-10-02 14:50:33 +0200 |
commit | b6d9c83c8386c83f0e2c3ffeaded184f60635bb4 (patch) | |
tree | b404f53d08361eef07350d21f4002f8b1def711c /wx+/image_tools.cpp | |
parent | 6.6 (diff) | |
download | FreeFileSync-b6d9c83c8386c83f0e2c3ffeaded184f60635bb4.tar.gz FreeFileSync-b6d9c83c8386c83f0e2c3ffeaded184f60635bb4.tar.bz2 FreeFileSync-b6d9c83c8386c83f0e2c3ffeaded184f60635bb4.zip |
6.7
Diffstat (limited to 'wx+/image_tools.cpp')
-rw-r--r-- | wx+/image_tools.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wx+/image_tools.cpp b/wx+/image_tools.cpp index 97fe3660..f45f3b6f 100644 --- a/wx+/image_tools.cpp +++ b/wx+/image_tools.cpp @@ -156,7 +156,9 @@ wxImage zen::createImageFromText(const wxString& text, const wxFont& font, const dc.SetTextBackground(*wxWHITE); // dc.SetFont(font); + assert(!contains(text, L"&")); //accelerator keys not supported here; see also getTextExtent() wxString textFmt = replaceCpy(text, L"&", L"", false); + //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'; |