From 049c730813f4a9972a568bd00a6922a8bcfbcb4e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 27 Jan 2012 21:32:48 +0000 Subject: [PATCH] Fix handling of autosave and autobackup paths that don't end in a slash Originally committed to SVN as r6386. --- aegisub/src/ass_file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/ass_file.cpp b/aegisub/src/ass_file.cpp index 99350b750..7ba991eea 100644 --- a/aegisub/src/ass_file.cpp +++ b/aegisub/src/ass_file.cpp @@ -127,7 +127,7 @@ void AssFile::Load(const wxString &_filename,wxString charset,bool addToRecent) if (file.FileExists()) { wxString path = lagi_wxString(OPT_GET("Path/Auto/Backup")->GetString()); if (path.empty()) path = file.GetPath(); - wxFileName dstpath(StandardPaths::DecodePath(path)); + wxFileName dstpath(StandardPaths::DecodePath(path + "/")); if (!dstpath.DirExists()) wxMkdir(dstpath.GetPath()); @@ -182,7 +182,7 @@ wxString AssFile::AutoSave() { wxString path = lagi_wxString(OPT_GET("Path/Auto/Save")->GetString()); if (!path) path = origfile.GetPath(); - path = StandardPaths::DecodePath(path); + path = StandardPaths::DecodePath(path + "/"); wxFileName dstpath(path); if (!dstpath.DirExists())