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