]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed rendering artifact in wxCaret
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 27 Jan 2002 00:47:48 +0000 (00:47 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 27 Jan 2002 00:47:48 +0000 (00:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/caret.cpp

index 8110dea83ba619b64a827fdecb34dae04111172d..9d7864223be5c03081d103b78f47ff489199196a 100644 (file)
@@ -158,7 +158,8 @@ void wxCaret::OnSetFocus()
 {
     m_hasFocus = TRUE;
 
-    Refresh();
+    if ( IsVisible() )
+        Refresh();
 }
 
 void wxCaret::OnKillFocus()