From: Václav Slavík Date: Wed, 19 Jan 2000 23:02:04 +0000 (+0000) Subject: fixed compilation problem with BC (at least I hope so) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/68263f63e53e62615021d1cf45226130b610cb84 fixed compilation problem with BC (at least I hope so) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/m_pre.cpp b/src/html/m_pre.cpp index 5a5a3ecb01..b7f283a224 100644 --- a/src/html/m_pre.cpp +++ b/src/html/m_pre.cpp @@ -140,9 +140,14 @@ TAG_HANDLER_BEGIN(PRE, "PRE") { wxString cit; wxEncodingConverter *encconv = m_WParser -> GetEncodingConverter(); - cit = m_WParser -> GetSource() -> Mid(tag.GetBeginPos(), tag.GetEndPos1() - tag.GetBeginPos()); - wxString cit2(encconv ? encconv -> Convert(cit) : cit); - c -> InsertCell(new wxHtmlPRECell(cit2, *(m_WParser -> GetDC()))); + cit = m_WParser -> GetSource() -> Mid(tag.GetBeginPos(), + tag.GetEndPos1() - tag.GetBeginPos()); + if (encconv) + c -> InsertCell(new wxHtmlPRECell(encconv -> Convert(cit), + *(m_WParser -> GetDC()))); + else + c -> InsertCell(new wxHtmlPRECell(cit, + *(m_WParser -> GetDC()))); } m_WParser -> SetFontUnderlined(underlined);