I fixed the bug locally by changing the following line in UNIT_BINDER::onKillFocus( wxFocusEvent& aEvent ):
``` if( !aEvent.GetWindow() || aEvent.GetWindow()->GetId() == wxID_CANCEL ) ```
to
``` if( aEvent.GetWindow() && aEvent.GetWindow()->GetId() == wxID_CANCEL ) ```
This fixed the evaluation in general, but a regression was visible: entering a value and then pressing Enter skipped the evaluation. A user had to explicitly press OK with the Mouse or set focus to another object.
I fixed the bug locally by changing the following line in UNIT_BINDER: :onKillFocus( wxFocusEvent& aEvent ):
``` GetWindow( )->GetId( ) == wxID_CANCEL )
if( !aEvent.GetWindow() || aEvent.
```
to
``` GetWindow( )->GetId( ) == wxID_CANCEL )
if( aEvent.GetWindow() && aEvent.
```
This fixed the evaluation in general, but a regression was visible: entering a value and then pressing Enter skipped the evaluation. A user had to explicitly press OK with the Mouse or set focus to another object.