Don't post events if un-evaluated-value isn't any different.

Fixes https://gitlab.com/kicad/code/kicad/issues/8745
This commit is contained in:
Jeff Young 2021-07-07 12:41:52 +01:00
parent 5ab56e5320
commit 1e76b7808f
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ void UNIT_BINDER::onSetFocus( wxFocusEvent& aEvent )
{
wxString oldStr = m_eval.OriginalText();
if( oldStr.length() )
if( oldStr.length() && oldStr != textEntry->GetValue() )
{
textEntry->SetValue( oldStr );
textEntry->SetSelection( m_selStart, m_selEnd );