diff --git a/samples/text/text.cpp b/samples/text/text.cpp index 767e93bcc2..126cb97168 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.GetEventType() != wxEVT_MOTION ) + if ( ev.GetEventType() != wxEVT_MOTION ) { wxString msg; if ( ev.Entering() )