X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/msw/caret.cpp diff --git a/src/msw/caret.cpp b/src/msw/caret.cpp index e35dc6da09..5378bc1f8f 100644 --- a/src/msw/caret.cpp +++ b/src/msw/caret.cpp @@ -153,8 +153,8 @@ void wxCaret::DoMove() { if ( m_hasCaret ) { - wxWindow *winFocus = wxWindow::FindFocus(); - wxASSERT_MSG( winFocus == GetWindow(), wxT("how did we lose focus?") ); + wxASSERT_MSG( wxWindow::FindFocus() == GetWindow(), + wxT("how did we lose focus?") ); CALL_CARET_API(SetCaretPos, (m_x, m_y)); }