diff options
| author | Josh Andler <scislac@gmail.com> | 2009-09-23 13:23:33 +0000 |
|---|---|---|
| committer | scislac <scislac@users.sourceforge.net> | 2009-09-23 13:23:33 +0000 |
| commit | e313aed76c3bc76bbdd3b99c1a2afbed58db7da7 (patch) | |
| tree | 255676f67a82b4639c7be40946dd4f1d0c5d2a27 /src/dialogs/export.cpp | |
| parent | Korean translation update by yongdoria (diff) | |
| download | inkscape-e313aed76c3bc76bbdd3b99c1a2afbed58db7da7.tar.gz inkscape-e313aed76c3bc76bbdd3b99c1a2afbed58db7da7.zip | |
Better patch by Adib for 431022. Appears safe, however, I am unable to test as it is/was a win32 issue only.
(bzr r8635)
Diffstat (limited to '')
| -rw-r--r-- | src/dialogs/export.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp index adadcd2f6..2c04135bc 100644 --- a/src/dialogs/export.cpp +++ b/src/dialogs/export.cpp @@ -1358,7 +1358,11 @@ 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", 10, NULL, NULL, NULL); + WCHAR filter_string[20]; + wcsncpy(filter_string, L"PNG#*.png##", 11); + filter_string[3] = L'\0'; + filter_string[9] = L'\0'; + filter_string[10] = L'\0'; 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 @@ -1397,7 +1401,7 @@ sp_export_browse_clicked (GtkButton */*button*/, gpointer /*userdata*/) } g_free(extension_string); g_free(title_string); - g_free(filter_string); + #else if (gtk_dialog_run (GTK_DIALOG (fs)) == GTK_RESPONSE_ACCEPT) { |
