]> git.saurik.com Git - wxWidgets.git/commitdiff
case insensitive <font face>
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 8 Mar 2002 23:47:48 +0000 (23:47 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 8 Mar 2002 23:47:48 +0000 (23:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/html/m_fonts.cpp

index 453b0749051effc4963011a86934d98ee166620b..37e0315ec33537002ee0772f821eb4068fb15167 100644 (file)
@@ -147,6 +147,7 @@ wxHTML:
 - added blocking and redirecting capabilities to wxHtmlWindow via
   wxHtmlWindow::OnOpeningURL()
 - fixed alignment handling in tables
+- fixed <font face="..."> handling to be case insensitive
 
 2.3.2
 -----
index 61e59f86c3c9c9339da99c3dc0c0e86076345e3c..0014a38ed8af9f3d5e40d6f1e672dfcb3c7a3b79 100644 (file)
@@ -34,7 +34,7 @@ FORCE_LINK_ME(m_fonts)
 TAG_HANDLER_BEGIN(FONT, "FONT")
 
     TAG_HANDLER_VARS
-        wxSortedArrayString m_Faces;
+        wxArrayString m_Faces;
 
     TAG_HANDLER_PROC(tag)
     {
@@ -80,7 +80,7 @@ TAG_HANDLER_BEGIN(FONT, "FONT")
 
             while (tk.HasMoreTokens())
             {
-                if ((index = m_Faces.Index(tk.GetNextToken())) != wxNOT_FOUND)
+                if ((index = m_Faces.Index(tk.GetNextToken(), FALSE)) != wxNOT_FOUND)
                 {
                     m_WParser->SetFontFace(m_Faces[index]);
                     m_WParser->GetContainer()->InsertCell(new wxHtmlFontCell(m_WParser->CreateCurrentFont()));