Comment 13 for bug 408566

Revision history for this message
David Xiong (yunwxiong) wrote :

I just did a quick fix on the two bugs. (quick fixes are not ideal, but solve the problem. Also, it helps to get familiar with the methods and types.)

I have fixed the error and tested the program. It should not cause issue in Ubuntu or other platforms. I don't know for sure without testing.

For bug:
https://bugs.launchpad.net/inkscape/+bug/769725

I added a check on the filename. If it does not end with the extension string, e.g. ".svg" or "eps", add it based on what file format is chosen in the dialog. Then, the missing-extension error no longer happens.

For bug (new):
https://bugs.launchpad.net/inkscape/+bug/769725

It is fixed with the first bug being fixed. If the file does not miss the extension, the problem does not occur any more.

The attached patch file is the change. I generated using bzr diff. I am not sure how to send a patch, or push changes, although I tried making a branch (https://code.launchpad.net/~yunwxiong/+junk/test_debug1).

Finally, I agree with Jon that a better way to deal with cross-platform file directories and names would be useful.