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
This commit is contained in:
@@ -140,9 +140,14 @@ TAG_HANDLER_BEGIN(PRE, "PRE")
|
|||||||
{
|
{
|
||||||
wxString cit;
|
wxString cit;
|
||||||
wxEncodingConverter *encconv = m_WParser -> GetEncodingConverter();
|
wxEncodingConverter *encconv = m_WParser -> GetEncodingConverter();
|
||||||
cit = m_WParser -> GetSource() -> Mid(tag.GetBeginPos(), tag.GetEndPos1() - tag.GetBeginPos());
|
cit = m_WParser -> GetSource() -> Mid(tag.GetBeginPos(),
|
||||||
wxString cit2(encconv ? encconv -> Convert(cit) : cit);
|
tag.GetEndPos1() - tag.GetBeginPos());
|
||||||
c -> InsertCell(new wxHtmlPRECell(cit2, *(m_WParser -> GetDC())));
|
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);
|
m_WParser -> SetFontUnderlined(underlined);
|
||||||
|
Reference in New Issue
Block a user