From f01d42db7ce24a94a61f164d56c36890b9df9e0f Mon Sep 17 00:00:00 2001 From: scislac Date: Tue, 22 Sep 2009 20:21:38 +0000 Subject: [PATCH] Patch by Adib for 431022. Appears safe, however, I am unable to test as it is/was a win32 issue only. --- src/dialogs/export.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp index ce0786a01..adadcd2f6 100644 --- a/src/dialogs/export.cpp +++ b/src/dialogs/export.cpp @@ -1358,7 +1358,7 @@ sp_export_browse_clicked (GtkButton */*button*/, gpointer /*userdata*/) #ifdef WIN32 // code in this section is borrowed from ui/dialogs/filedialogimpl-win32.cpp OPENFILENAMEW opf; - WCHAR* filter_string = (WCHAR*)g_utf8_to_utf16("PNG\0*.png\0\0", 12, NULL, NULL, NULL); + WCHAR* filter_string = (WCHAR*)g_utf8_to_utf16("PNG\0*.png\0", 10, NULL, NULL, NULL); WCHAR* title_string = (WCHAR*)g_utf8_to_utf16(_("Select a filename for exporting"), -1, NULL, NULL, NULL); WCHAR* extension_string = (WCHAR*)g_utf8_to_utf16("*.png", -1, NULL, NULL, NULL); // Copy the selected file name, converting from UTF-8 to UTF-16 -- 2.30.2