Fix not understandable comment
This commit is contained in:
parent
f13a546c9b
commit
1e43773a95
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue