diff --git a/samples/text/text.cpp b/samples/text/text.cpp index a610679869..767e93bcc2 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -776,7 +776,7 @@ void MyTextCtrl::OnMouseEvent(wxMouseEvent& ev) if ( !ms_logMouse ) return; - if ( !ev.Moving() ) + if ( !ev.GetEventType() != wxEVT_MOTION ) { wxString msg; if ( ev.Entering() )