X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f1ad10f37305b1e0191827e1f23d6fca944e288c..82dd98a702e7dd277c36a6d6c53879893dfc3250:/src/html/m_fonts.cpp diff --git a/src/html/m_fonts.cpp b/src/html/m_fonts.cpp index 51168e0026..a632859a9e 100644 --- a/src/html/m_fonts.cpp +++ b/src/html/m_fonts.cpp @@ -55,7 +55,7 @@ TAG_HANDLER_BEGIN(FONT, "FONT") if (tag.HasParam(wxT("SIZE"))) { long tmp = 0; - wxChar c = tag.GetParam(wxT("SIZE"))[0]; + wxChar c = tag.GetParam(wxT("SIZE"))[(unsigned int) 0]; if (tag.ScanParam(wxT("SIZE"), wxT("%li"), &tmp) == 1) { if (c == '+' || c == '-') m_WParser -> SetFontSize(oldsize+tmp); @@ -206,20 +206,20 @@ TAG_HANDLER_BEGIN(Hx, "H1,H2,H3,H4,H5,H6") m_WParser -> SetFontUnderlined(FALSE); m_WParser -> SetFontFixed(FALSE); - if (tag.GetName() == "H1") + if (tag.GetName() == wxT("H1")) m_WParser -> SetFontSize(7); - else if (tag.GetName() == "H2") + else if (tag.GetName() == wxT("H2")) m_WParser -> SetFontSize(6); - else if (tag.GetName() == "H3") + else if (tag.GetName() == wxT("H3")) m_WParser -> SetFontSize(5); - else if (tag.GetName() == "H4") { + else if (tag.GetName() == wxT("H4")) { m_WParser -> SetFontSize(5); m_WParser -> SetFontItalic(TRUE); m_WParser -> SetFontBold(FALSE); } - else if (tag.GetName() == "H5") + else if (tag.GetName() == wxT("H5")) m_WParser -> SetFontSize(4); - else if (tag.GetName() == "H6") { + else if (tag.GetName() == wxT("H6")) { m_WParser -> SetFontSize(4); m_WParser -> SetFontItalic(TRUE); m_WParser -> SetFontBold(FALSE);