~ubuntu-branches/debian/sid/inkscape/sid

« back to all changes in this revision

Viewing changes to src/dialogs/export.cpp

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-06-21 15:13:32 UTC
  • mfrom: (10.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130621151332-uo22shomzjut843h
Tags: 0.48.4-1
* Upload to unstable
* debian/control: added myself to Uploaders
* debian/patches/: patchset updated
  - 04-Fix_FTBFS_on_gcc-4.8.patch added (Closes: #701297)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1366
1366
    WCHAR* title_string = (WCHAR*)g_utf8_to_utf16(_("Select a filename for exporting"), -1, NULL, NULL, NULL);
1367
1367
    WCHAR* extension_string = (WCHAR*)g_utf8_to_utf16("*.png", -1, NULL, NULL, NULL);
1368
1368
    // Copy the selected file name, converting from UTF-8 to UTF-16
 
1369
    std::string dirname = Glib::path_get_dirname(filename);
 
1370
    if ( !Glib::file_test(dirname, Glib::FILE_TEST_EXISTS) ||
 
1371
         g_file_test (filename, G_FILE_TEST_IS_DIR) ||
 
1372
         dirname.empty() )
 
1373
    {
 
1374
        filename = create_filepath_from_id(NULL, NULL);
 
1375
    }
1369
1376
    WCHAR _filename[_MAX_PATH + 1];
1370
1377
    memset(_filename, 0, sizeof(_filename));
1371
1378
    gunichar2* utf16_path_string = g_utf8_to_utf16(filename, -1, NULL, NULL, NULL);