From 1fc5dc69fdb71cb98af8a76eeea44945e0b46730 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 16 Sep 2007 10:57:01 +0000 Subject: [PATCH] destroy the old clipping region before setting the new one (part of patch 1716763) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/textctrl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index 42d6364..d8816f8 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -4193,6 +4193,7 @@ void wxTextCtrl::DoDraw(wxControlRenderer *renderer) // FIXME: is this really a bug in wxMSW? rectTextArea.width--; #endif // __WXMSW__ + dc.DestroyClippingRegion(); dc.SetClippingRegion(rectTextArea); // adjust for scrolling -- 2.7.4