Fix PCH-less build after the changes of r72589.
Use wx{SOLID,TRANSPARENT} instead of wxBRUSHSTYLE_{SOLID,TRANSPARENT}. This makes more sense as we're setting background mode, not brush style, here and also fixed compilation when not using PCH. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -65,7 +65,7 @@ TAG_HANDLER_BEGIN(SPAN, "SPAN" )
|
||||
if ( wxHtmlTag::ParseAsColour(str, &clr) )
|
||||
{
|
||||
m_WParser->SetActualBackgroundColor(clr);
|
||||
m_WParser->SetActualBackgroundMode(wxBRUSHSTYLE_SOLID);
|
||||
m_WParser->SetActualBackgroundMode(wxSOLID);
|
||||
m_WParser->GetContainer()->InsertCell(new wxHtmlColourCell(clr, wxHTML_CLR_BACKGROUND));
|
||||
}
|
||||
}
|
||||
@@ -171,7 +171,7 @@ TAG_HANDLER_BEGIN(SPAN, "SPAN" )
|
||||
m_WParser->SetActualBackgroundMode(oldbackmode);
|
||||
m_WParser->SetActualBackgroundColor(oldbackclr);
|
||||
m_WParser->GetContainer()->InsertCell(
|
||||
new wxHtmlColourCell(oldbackclr, oldbackmode == wxBRUSHSTYLE_TRANSPARENT ? wxHTML_CLR_TRANSPARENT_BACKGROUND : wxHTML_CLR_BACKGROUND));
|
||||
new wxHtmlColourCell(oldbackclr, oldbackmode == wxTRANSPARENT ? wxHTML_CLR_TRANSPARENT_BACKGROUND : wxHTML_CLR_BACKGROUND));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user