script output extension creates 0 size file

Bug #727113 reported by luky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Script output extension doesn't allow cancellation of export from export script. So even in case when no output is generated inkscape creates 0 size file
It's caused by script.cpp save routine where you can find those lines of code:
    file_listener fileout;
    execute(command, params, tempfilename_in, fileout);

    std::string lfilename = Glib::filename_from_utf8(filenameArg);
    bool success = fileout.toFile(lfilename);

execute function returns correctly 0 in case there is no output (stdout), but the return value is never checked and new file is always created.

Revision history for this message
su_v (suv-lp) wrote :

Already changed in Inkscape trunk, see revision 9815:
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/9815>

Linking as duplicate to bug #652943 “Aborted output extensions create an empty file”
<https://bugs.launchpad.net/inkscape/+bug/652943>

Please add a comment here and revert the duplicate status if you don't agree and think these are different issues.

tags: added: exporting extensions-plugins
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.