Fix initial value returned from wxRichTextCtrl::IsModified()

A just created control shouldn't be considered modified, so reset its
modified state in Create().

And add a unit test checking that IsModified() really behaves as
expected.

Closes https://github.com/wxWidgets/wxWidgets/pull/1652
This commit is contained in:
Igor Korot
2019-11-13 22:16:35 -06:00
committed by Vadim Zeitlin
parent 33da780ecf
commit 68de1b2acf
2 changed files with 10 additions and 1 deletions

View File

@@ -343,7 +343,7 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va
#if wxUSE_DRAG_AND_DROP
SetDropTarget(new wxRichTextDropTarget(this));
#endif
SetModified( false );
return true;
}