Commit 83bc196d authored by Patrick Storz's avatar Patrick Storz 🦄

Fix encoding of "title" label in win32 native file dialog

Fixed bugs
  - https://bugs.launchpad.net/inkscape/+bug/1802726
parent 17ff0a35
Pipeline #36213168 (#2011) passed with stages
in 6 minutes and 53 seconds
......@@ -1883,10 +1883,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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment