X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1dab6da91b702ad41b249ecaf826a628bad05fce..f1f5f16f780bb41aa2ea24ccbf728f14c86cc475:/src/common/dcbase.cpp diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 1475923953..9f875dd04d 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -698,6 +698,7 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect, { // save old pen wxPen oldPen = m_pen; + wxBrush oldBrush = m_brush; wxUint8 nR1 = initialColour.Red(); wxUint8 nG1 = initialColour.Green(); @@ -783,6 +784,7 @@ void wxDCBase::DoGradientFillLinear(const wxRect& rect, } SetPen(oldPen); + SetBrush(oldBrush); } void wxDCBase::DoGradientFillConcentric(const wxRect& rect,