From c7af4603c03f74812b5f7c92eb144f5b3b5165c6 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 18 Nov 2013 07:49:14 +0000 Subject: [PATCH] Fixed refresh bug in border preview control when resizing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextborderspage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/richtext/richtextborderspage.cpp b/src/richtext/richtextborderspage.cpp index 2925b78262..db8ac09f55 100644 --- a/src/richtext/richtextborderspage.cpp +++ b/src/richtext/richtextborderspage.cpp @@ -1235,6 +1235,9 @@ void wxRichTextBorderPreviewCtrl::OnPaint(wxPaintEvent& WXUNUSED(event)) { wxPaintDC dc(this); + dc.SetBackground(*wxWHITE_BRUSH); + dc.Clear(); + if (m_attributes) { wxRect rect = GetClientRect();