summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/filedialogimpl-win32.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2018-11-11 21:56:42 +0000
committerEduard Braun <eduard.braun2@gmx.de>2018-11-11 21:56:42 +0000
commit2b1e44036f85d295b29f436c22ff31eb95290012 (patch)
tree8364eab1ccbc64c7dfe8bc493d97fa4863ed6e65 /src/ui/dialog/filedialogimpl-win32.cpp
parentFix a bug icons dont show if no dialog open (diff)
downloadinkscape-2b1e44036f85d295b29f436c22ff31eb95290012.tar.gz
inkscape-2b1e44036f85d295b29f436c22ff31eb95290012.zip
Fix encoding of "title" label in win32 native file dialog
Fixed bugs - https://bugs.launchpad.net/inkscape/+bug/1802726
Diffstat (limited to 'src/ui/dialog/filedialogimpl-win32.cpp')
-rw-r--r--src/ui/dialog/filedialogimpl-win32.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/dialog/filedialogimpl-win32.cpp b/src/ui/dialog/filedialogimpl-win32.cpp
index 4380eebfd..dbe84ea38 100644
--- a/src/ui/dialog/filedialogimpl-win32.cpp
+++ b/src/ui/dialog/filedialogimpl-win32.cpp
@@ -1878,10 +1878,13 @@ UINT_PTR CALLBACK FileSaveDialogImplWin32::GetSaveFileName_hookproc(
pImpl = reinterpret_cast<FileSaveDialogImplWin32*>(ofn->lCustData);
// Create the Title label and edit control
- pImpl->_title_label = CreateWindowEx(0, "STATIC", _("Title:"),
+ wchar_t *title_label_str = (wchar_t *)g_utf8_to_utf16(_("Title:"), -1, NULL, NULL, NULL);
+ pImpl->_title_label = CreateWindowExW(0, L"STATIC", title_label_str,
WS_VISIBLE|WS_CHILD,
CW_USEDEFAULT, CW_USEDEFAULT, rCB1.left-rST.left, rST.bottom-rST.top,
hParentWnd, NULL, hInstance, NULL);
+ g_free(title_label_str);
+
if(pImpl->_title_label) {
if(dlgFont) SendMessage(pImpl->_title_label, WM_SETFONT, (WPARAM)dlgFont, MAKELPARAM(FALSE, 0));
SetWindowPos(pImpl->_title_label, NULL, rST.left-rROOT.left, rST.top+ydelta-rROOT.top,