fixed wxHTML parsing to run in O(n) even in UTF8 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -289,9 +289,7 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE")
|
||||
wxHtmlWindowInterface *winIface = m_WParser->GetWindowInterface();
|
||||
if (winIface)
|
||||
{
|
||||
wxString title = m_WParser->GetSource()->Mid(
|
||||
tag.GetBeginPos(),
|
||||
tag.GetEndPos1()-tag.GetBeginPos());
|
||||
wxString title(tag.GetBeginIter(), tag.GetEndIter1());
|
||||
#if !wxUSE_UNICODE && wxUSE_WCHAR_T
|
||||
const wxFontEncoding enc = m_WParser->GetInputEncoding();
|
||||
if ( enc != wxFONTENCODING_DEFAULT )
|
||||
|
||||
Reference in New Issue
Block a user