From: Vadim Zeitlin Date: Mon, 1 Oct 2012 09:40:06 +0000 (+0000) Subject: Fix PCH-less build after the changes of r72589. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1f4bb1d7f2d7faf05f993b1b8071938234ba18b3 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 --- diff --git a/src/html/m_span.cpp b/src/html/m_span.cpp index 50660bd4f1..8e1b99716c 100644 --- a/src/html/m_span.cpp +++ b/src/html/m_span.cpp @@ -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;