X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b4f4d3dd610a29a7be3c7a5f165520438d0328bb..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/html/m_fonts.cpp diff --git a/src/html/m_fonts.cpp b/src/html/m_fonts.cpp index 9e69afb79f..9b8380d06d 100644 --- a/src/html/m_fonts.cpp +++ b/src/html/m_fonts.cpp @@ -51,10 +51,11 @@ TAG_HANDLER_BEGIN(FONT, "FONT" ) if (tag.HasParam(wxT("SIZE"))) { - int tmp = 0; - wxChar c = tag.GetParam(wxT("SIZE")).GetChar(0); - if (tag.GetParamAsInt(wxT("SIZE"), &tmp)) + long tmp = 0; + const wxString sizeStr = tag.GetParam(wxT("SIZE")); + if (sizeStr.ToLong(&tmp)) { + wxChar c = sizeStr[0]; if (c == wxT('+') || c == wxT('-')) m_WParser->SetFontSize(oldsize+tmp); else @@ -106,7 +107,7 @@ TAG_HANDLER_BEGIN(FONT, "FONT" ) TAG_HANDLER_END(FONT) -TAG_HANDLER_BEGIN(FACES_U, "U,STRIKE") +TAG_HANDLER_BEGIN(FACES_U, "U,STRIKE,DEL") TAG_HANDLER_CONSTR(FACES_U) { }