From 771832ebbbfb1144f896eff21d1c868ee9f796f9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 1 Oct 2019 01:22:05 +0200 Subject: [PATCH] Clear background if background brush is invalid in wxGTK2 too We only should avoid clearing the background if the brush is transparent, not if it's not set. This refines 6549d4c3c5f5d3e3acc754a2b1dc04f4a0a336d1 See #10273. --- src/gtk/dcclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index c4ec6109cf..4ccd8ddc71 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1508,7 +1508,7 @@ void wxWindowDCImpl::Clear() if (!m_gdkwindow) return; - if (!m_backgroundBrush.IsOk() || m_backgroundBrush.GetStyle() == wxBRUSHSTYLE_TRANSPARENT) + if (m_backgroundBrush.IsTransparent()) return; int width,height;