From: JazzyNico Date: Wed, 29 Jul 2009 07:09:54 +0000 (+0000) Subject: Fix for bug #396580 (non-ASCII characters not displayed correctly in the open dialog). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4f1f0eda094c444bab41bc96e7e813fd43e7fd7e;p=inkscape.git Fix for bug #396580 (non-ASCII characters not displayed correctly in the open dialog). --- diff --git a/src/ui/dialog/filedialogimpl-win32.cpp b/src/ui/dialog/filedialogimpl-win32.cpp index 6fd753abb..0d8f0de5f 100644 --- a/src/ui/dialog/filedialogimpl-win32.cpp +++ b/src/ui/dialog/filedialogimpl-win32.cpp @@ -608,9 +608,12 @@ LRESULT CALLBACK FileOpenDialogImplWin32::preview_wnd_proc(HWND hwnd, UINT uMsg, if(pImpl->_path_string[0] == 0) { + WCHAR* noFileText=(WCHAR*)g_utf8_to_utf16(_("No file selected"), + -1, NULL, NULL, NULL); FillRect(dc, &rcClient, (HBRUSH)(COLOR_3DFACE + 1)); - DrawText(dc, _("No file selected"), -1, &rcClient, + DrawTextW(dc, noFileText, -1, &rcClient, DT_CENTER | DT_VCENTER | DT_NOPREFIX); + g_free(noFileText); } else if(pImpl->_preview_bitmap != NULL) {