Fix for modified state not set after next change following a ChangeValue()

See #17540
This commit is contained in:
Paul Cornett
2017-12-05 06:41:08 -08:00
parent f2106dcc3c
commit 696a5ba3dd
2 changed files with 4 additions and 2 deletions

View File

@@ -1042,6 +1042,8 @@ void wxTextCtrl::WriteText( const wxString &text )
// we're changing the text programmatically
DontMarkDirtyOnNextChange();
// make sure marking is re-enabled even if events are suppressed
wxON_BLOCK_EXIT_SET(m_dontMarkDirty, false);
// Inserting new text into the control below will emit insert-text signal
// which assumes that if m_imKeyEvent is set, it is called in response to