From 5cf94cc71c15039b972b9c331eab149be5f3f837 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 10 Oct 2006 19:04:21 +0000 Subject: [PATCH] resetting when necessary git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/caret.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/generic/caret.cpp b/src/generic/caret.cpp index 54cab63e4b..7d5569997c 100644 --- a/src/generic/caret.cpp +++ b/src/generic/caret.cpp @@ -131,6 +131,9 @@ void wxCaret::DoHide() void wxCaret::DoMove() { +#if wxUSE_OVERLAY + m_overlay.Reset(); +#endif if ( IsVisible() ) { if ( !m_blinkedOut ) @@ -155,7 +158,9 @@ void wxCaret::DoSize() m_countVisible = 0; DoHide(); } -#if wxUSE_OVERLAY == 0 +#if wxUSE_OVERLAY + m_overlay.Reset(); +#else // Change bitmap size m_bmpUnderCaret = wxBitmap(m_width, m_height); #endif -- 2.45.2