X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bd72d9065d076d720a57fdd319f967ecf4e5652..09e48f0b1917db7e455f28c2c9ed661d39e9ab65:/src/html/htmltag.cpp diff --git a/src/html/htmltag.cpp b/src/html/htmltag.cpp index 8801b15227..52e0c1b8f8 100644 --- a/src/html/htmltag.cpp +++ b/src/html/htmltag.cpp @@ -206,7 +206,10 @@ wxHtmlTag::wxHtmlTag(const wxString& source, int pos, int end_pos, else if (state == ST_VALUE && quote == 0) { m_ParamNames.Add(pname); - m_ParamValues.Add(entParser->Parse(pvalue)); + if (entParser) + m_ParamValues.Add(entParser->Parse(pvalue)); + else + m_ParamValues.Add(pvalue); } break; } @@ -259,7 +262,10 @@ wxHtmlTag::wxHtmlTag(const wxString& source, int pos, int end_pos, // but wxHTML code relies on this... :( pvalue.MakeUpper(); } - m_ParamValues.Add(entParser->Parse(pvalue)); + if (entParser) + m_ParamValues.Add(entParser->Parse(pvalue)); + else + m_ParamValues.Add(pvalue); state = ST_BEFORE_NAME; } else