From 1e43773a95eef136d85445c0549f20758f2179e8 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 25 Jul 2018 21:01:59 +0200 Subject: [PATCH] Fix not understandable comment --- common/widgets/unit_binder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/widgets/unit_binder.cpp b/common/widgets/unit_binder.cpp index dcb01368af..adee2af523 100644 --- a/common/widgets/unit_binder.cpp +++ b/common/widgets/unit_binder.cpp @@ -59,10 +59,10 @@ UNIT_BINDER::UNIT_BINDER( EDA_DRAW_FRAME* aParent, m_value->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( UNIT_BINDER::onSetFocus ), NULL, this ); m_value->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( UNIT_BINDER::onKillFocus ), NULL, this ); - // Connext wxEVT_TEXT_ENTER when (and *only when*) m_value has the wxTE_PROCESS_ENTER style - // because: - // 1 - it is useless - // 2 - it generate wxWidgets assert + // Connect wxEVT_TEXT_ENTER when (and *only when*) m_value has the wxTE_PROCESS_ENTER style + // because if this style does not exist: + // 1 - Connect wxEVT_TEXT_ENTER is useless + // 2 - it generates wxWidgets assert if( m_value->HasFlag( wxTE_PROCESS_ENTER ) ) m_value->Connect( wxEVT_TEXT_ENTER, wxCommandEventHandler( UNIT_BINDER::onTextEnter ), NULL, this ); }