diff options
| author | Alvin Penner <penner@vaxxine.com> | 2011-08-26 23:19:12 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2011-08-26 23:19:12 +0000 |
| commit | 61817a80c06ccd660385ef3c90f01254ecd6c0ab (patch) | |
| tree | ae39ec34c060a7720236ae0789ff604a8d30f86e /src | |
| parent | Fix "snap guides" toggle (diff) | |
| download | inkscape-61817a80c06ccd660385ef3c90f01254ecd6c0ab.tar.gz inkscape-61817a80c06ccd660385ef3c90f01254ecd6c0ab.zip | |
remove double backslash in pathname (Bug 805095)
Fixed bugs:
- https://launchpad.net/bugs/805095
(bzr r10583)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/dialog/filedialogimpl-win32.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/dialog/filedialogimpl-win32.cpp b/src/ui/dialog/filedialogimpl-win32.cpp index 4f4093a99..9fb1d831f 100644 --- a/src/ui/dialog/filedialogimpl-win32.cpp +++ b/src/ui/dialog/filedialogimpl-win32.cpp @@ -1593,6 +1593,8 @@ FileSaveDialogImplWin32::FileSaveDialogImplWin32(Gtk::Window &parent, // double-directory bug on win32 if (len != 0 && udir[len - 1] == '\\') udir.erase(len - 1); myFilename = udir.substr(0, udir.find_last_of( '.' ) ); // this removes the extension, or actually, removes everything past the last dot (hopefully this is what most people want) + if (1 + myFilename.find("\\\\",2)) // remove one slash if double + myFilename.replace(myFilename.find("\\\\",2), 1, ""); } } |
