]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix PCH-less build after the changes of r72589.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Oct 2012 09:40:06 +0000 (09:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Oct 2012 09:40:06 +0000 (09:40 +0000)
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

src/html/m_span.cpp

index 50660bd4f18e63eb42da6c7c80cab5497ea9aef3..8e1b99716c5c7f33fdd8fd2dd1dfbfc882114c2a 100644 (file)
@@ -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;