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

« back to all changes in this revision

Viewing changes to src/file.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:
851
851
            g_warning( "Error converting save filename to UTF-8." );
852
852
 
853
853
        Inkscape::Extension::Output *omod = dynamic_cast<Inkscape::Extension::Output *>(selectionType);
854
 
        Glib::ustring save_extension = (std::string)omod->get_extension();
855
 
 
856
 
        if ( !hasEnding(fileName, save_extension.c_str()) ) {
857
 
            fileName += save_extension.c_str();
 
854
        if (omod) {
 
855
            Glib::ustring save_extension = (std::string)omod->get_extension();
 
856
            if ( !hasEnding(fileName, save_extension.c_str()) ) {
 
857
                fileName += save_extension.c_str();
 
858
            }
858
859
        }
859
860
 
860
861
        // FIXME: does the argument !is_copy really convey the correct meaning here?