The save as dialog gives wrong directory on Win32
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Incomplete
|
Undecided
|
Johan Engelen |
Bug Description
If a user saves a file once, and try to save as for the second time, the save file dialog should pop up the directory where the file was just saved last time. But, it pops up the one-level-up directory.
It happens in Windows Vista and Windows XP. I compiled and tested Inkscape in both Windows Vista and XP.
This bug is highly relevant to the bug: https:/
- Create a new drawing, and draw a couple objects
- Click Save as to save the drawing into a folder "test. a"
- This reproduces the bug that I am trying to fix (https:/
- Click Save as again,
--> it is supposed to go into the folder, "test. a", where the last file was saved. But it actually goes to the folder that is one level up. Also, the default_filename should be "drawing", but is actually "test". This is caused by checking the ".". For instance, it may look for the "." in ".svg". However, there is a "." in "test. a" folder name, so it picked the wrong ".". Therefore, the wrong folder and wrong default_filename was picked.
This issue would be a problem if a user wants to save to "test. a" for many times. It would always show the upper directory, and need clicking to get into "test. a".
It is fixed with the bug, https:/ /bugs.launchpad .net/inkscape/ +bug/769725, being fixed.
If the file does not miss the extension, the problem does not occur any more. It is just a quick fix. A better overal handling and cleanup on file.cpp may be needed.