Fix wxDC::Clear() with transparent brush on GTK2

See #10273
This commit is contained in:
Paul Cornett 2019-08-15 17:14:31 -07:00
parent 283ac3096d
commit 6549d4c3c5

View File

@ -1508,6 +1508,9 @@ void wxWindowDCImpl::Clear()
if (!m_gdkwindow) return;
if (!m_backgroundBrush.IsOk() || m_backgroundBrush.GetStyle() == wxBRUSHSTYLE_TRANSPARENT)
return;
int width,height;
DoGetSize( &width, &height );
gdk_draw_rectangle( m_gdkwindow, m_bgGC, TRUE, 0, 0, width, height );