]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/m_layout.cpp
Patch from Hartwig for wxMac implementation
[wxWidgets.git] / src / html / m_layout.cpp
index 1bea3402014246c47a75f8026e0bba6eeb65bd4c..2451f2fb539a50e2d16aa30a9acf1e6489e839a7 100644 (file)
@@ -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 )