From ce903da7983be5dbb658f86ba89b5664413ce405 Mon Sep 17 00:00:00 2001 From: Maarten Date: Fri, 8 Jun 2018 19:17:22 +0200 Subject: [PATCH] Fix glitch in AUI frame with standard wxToolbar When the height of the AUI toolbar pane is higher than the wxToolbar, the extra area shows a glitch. This happens because the paint handler never draws on this area. Clearing the DC of the frame with the AUI background colour fixes this. See https://github.com/wxWidgets/wxWidgets/pull/829 Closes #18138 --- src/aui/framemanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 8f3c89605d..ab34ce3035 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -3935,6 +3935,10 @@ void wxAuiManager::Repaint(wxDC* dc) void wxAuiManager::OnPaint(wxPaintEvent& WXUNUSED(event)) { wxPaintDC dc(m_frame); + + dc.SetBackground(GetArtProvider()->GetColor(wxAUI_DOCKART_BACKGROUND_COLOUR)); + dc.Clear(); + Repaint(&dc); }