From 0e2f6f6ec04f3da381219e309e87da4408a0f1ae Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 23 Feb 2017 01:15:55 +0100 Subject: [PATCH] No changes, just fix a typo in a comment in wxMarkupText code Also remove a couple of trailing spaces. --- src/generic/markuptext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()));