From f46874b01fca91f2d2d52da2b5acb8286dfe9745 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 26 Aug 2008 00:03:04 +0000 Subject: [PATCH] allow periods in wxFileSystem URL anchors (patch #2265) [backport from trunk] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 13 +++++++------ src/common/filesys.cpp | 6 ++++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index bca478b48c..58510b7635 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -118,12 +118,13 @@ All (GUI): - Store palette information for XPM images in wxImage (troelsk). - Fixed selection bugs and auto list numbering in wxRichTextCtrl. - Significantly optimize wxGrid::BlockToDeviceRect() for large grids (kjones). -- Introduced new wxAuiToolBar class for better integration and look-and-feel -- In wxAuiFrameManager, fixed a segfault when Update() is called - in between mouse-up and mouse-down events -- In wxAUI, Added various NULL-ptr asserts -- Fixed problem with Floatable(false) not working in wxAuiFrameManager -- Fixed maximize bug in wxAUI +- Introduced new wxAuiToolBar class for better integration and look-and-feel. +- Fix a crash in wxAuiFrameManager when Update() was called in between mouse-up + and mouse-down events +- wxAUI: added various NULL-ptr asserts. +- Fixed problem with Floatable(false) not working in wxAuiFrameManager. +- Fixed maximize bug in wxAUI. +- Allow period in link anchors in wxHTML. All (Unix): diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index 0f9580213c..f105b9632e 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -188,8 +188,10 @@ wxString wxFileSystemHandler::GetAnchor(const wxString& location) const 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; }