From: Václav Slavík Date: Mon, 17 Jan 2000 17:19:31 +0000 (+0000) Subject: fixed BC compilation bug (line 145) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/66bf55ca85742f562bf5f6039bed7b4d69231be1?ds=inline;hp=74accc5015c73a25f3298b638c93e200fefa310c fixed BC compilation bug (line 145) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/m_pre.cpp b/src/html/m_pre.cpp index f4999ee76b..5a5a3ecb01 100644 --- a/src/html/m_pre.cpp +++ b/src/html/m_pre.cpp @@ -141,9 +141,8 @@ TAG_HANDLER_BEGIN(PRE, "PRE") wxString cit; wxEncodingConverter *encconv = m_WParser -> GetEncodingConverter(); cit = m_WParser -> GetSource() -> Mid(tag.GetBeginPos(), tag.GetEndPos1() - tag.GetBeginPos()); - c -> InsertCell(new wxHtmlPRECell( - encconv ? encconv -> Convert(cit) : cit, - *(m_WParser -> GetDC()))); + wxString cit2(encconv ? encconv -> Convert(cit) : cit); + c -> InsertCell(new wxHtmlPRECell(cit2, *(m_WParser -> GetDC()))); } m_WParser -> SetFontUnderlined(underlined);