summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7163b96)
raw | patch | inline | side by side (parent: 7163b96)
| author | JazzyNico <JazzyNico@users.sourceforge.net> | |
| Wed, 29 Jul 2009 07:09:54 +0000 (07:09 +0000) | ||
| committer | JazzyNico <JazzyNico@users.sourceforge.net> | |
| Wed, 29 Jul 2009 07:09:54 +0000 (07:09 +0000) |
| src/ui/dialog/filedialogimpl-win32.cpp | patch | blob | history |
index 6fd753abb5afb53f0325c3476bb2be2ade822b4b..0d8f0de5f7c3a1674af6eea74b648ec03b5d829f 100644 (file)
@@ -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)
{