X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b6e8d5a3629286915a909b4b6010c2e2d7312ea4..1978421a6d8b81c1f8a961da4b8ddf544fec7b1b:/src/generic/caret.cpp diff --git a/src/generic/caret.cpp b/src/generic/caret.cpp index 9d7864223b..e2039646c5 100644 --- a/src/generic/caret.cpp +++ b/src/generic/caret.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "caret.h" #endif @@ -91,7 +91,7 @@ void wxCaretBase::SetBlinkTime(int milliseconds) void wxCaret::InitGeneric() { m_hasFocus = TRUE; - m_blinkedOut = FALSE; + m_blinkedOut = TRUE; m_xOld = m_yOld = -1; @@ -118,8 +118,8 @@ void wxCaret::DoShow() if ( blinkTime ) m_timer.Start(blinkTime); - m_blinkedOut = TRUE; - Blink(); + if ( m_blinkedOut ) + Blink(); } void wxCaret::DoHide()