X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fda05d726564e48b08d7e40b64ce9f314a42b73..cf30b51ff8b2bf89c1eeb4fe23c9d81ec013d870:/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; }