#ifndef WX_PRECOMP
#include "wx/window.h"
+ #include "wx/log.h"
#endif // WX_PRECOMP
#include "wx/caret.h"
void wxCaret::DoHide()
{
- wxASSERT_MSG( m_hasCaret, "cannot hide non existent caret" );
-
- if ( !::HideCaret(GetWinHwnd(GetWindow())) )
+ if ( m_hasCaret )
{
- wxLogLastError("HideCaret");
+ if ( !::HideCaret(GetWinHwnd(GetWindow())) )
+ {
+ wxLogLastError("HideCaret");
+ }
}
}