diff --git a/src/generic/markuptext.cpp b/src/generic/markuptext.cpp index ba999da5b1..1328c52d1c 100644 --- a/src/generic/markuptext.cpp +++ b/src/generic/markuptext.cpp @@ -263,14 +263,14 @@ public: const wxSize extent = m_dc.GetTextExtent(text); - // DrawItemText() ignores background color, so render it outselves + // DrawItemText() ignores background color, so render it ourselves if ( m_dc.GetBackgroundMode() == wxSOLID ) { #if wxUSE_GRAPHICS_CONTEXT // Prefer to use wxGraphicsContext because it supports alpha channel; fall back to wxDC if ( !m_gc ) m_gc.reset(wxGraphicsContext::CreateFromUnknownDC(m_dc)); - + if ( m_gc ) { m_gc->SetBrush(wxBrush(m_dc.GetTextBackground()));