]> git.saurik.com Git - wxWidgets.git/commitdiff
resetting when necessary
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 10 Oct 2006 19:04:21 +0000 (19:04 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 10 Oct 2006 19:04:21 +0000 (19:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/caret.cpp

index 54cab63e4b30ee252e95d97917b3851c92afd0cc..7d5569997c319d8cc97e1b108066788476aaa319 100644 (file)
@@ -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