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:
parent
5ab56e5320
commit
1e76b7808f
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue