X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6540132fa1ee1b36c155ea39c84899e6beb2664e..7112cdd1f3c4730391cf0a562f4d7dcee8676f07:/src/html/m_fonts.cpp diff --git a/src/html/m_fonts.cpp b/src/html/m_fonts.cpp index cd33cd2119..422b73c5b9 100644 --- a/src/html/m_fonts.cpp +++ b/src/html/m_fonts.cpp @@ -15,7 +15,7 @@ #if wxUSE_HTML && wxUSE_STREAMS -#ifndef WXPRECOMP +#ifndef WX_PRECOMP #endif #include "wx/html/forcelnk.h" @@ -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