X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fda05d726564e48b08d7e40b64ce9f314a42b73..1718ef3b370df5c7fc6ff6a6ff6bb011e39b604f:/src/common/filesys.cpp diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index 71dc13788b..fc12af7d55 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -193,8 +193,10 @@ wxString wxFileSystemHandler::GetAnchor(const wxString& location) for (int i = l-1; i >= 0; i--) { c = location[i]; - if (c == wxT('#')) return location.Right(l-i-1); - else if ((c == wxT('.')) || (c == wxT('/')) || (c == wxT('\\')) || (c == wxT(':'))) return wxEmptyString; + if (c == wxT('#')) + return location.Right(l-i-1); + else if ((c == wxT('/')) || (c == wxT('\\')) || (c == wxT(':'))) + return wxEmptyString; } return wxEmptyString; }