From: Václav Slavík Date: Sun, 27 Jan 2002 00:47:48 +0000 (+0000) Subject: fixed rendering artifact in wxCaret X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b6e8d5a3629286915a909b4b6010c2e2d7312ea4 fixed rendering artifact in wxCaret git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/caret.cpp b/src/generic/caret.cpp index 8110dea83b..9d7864223b 100644 --- a/src/generic/caret.cpp +++ b/src/generic/caret.cpp @@ -158,7 +158,8 @@ void wxCaret::OnSetFocus() { m_hasFocus = TRUE; - Refresh(); + if ( IsVisible() ) + Refresh(); } void wxCaret::OnKillFocus()