1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 04:47:36 +00:00

GTextEditor: Add assertion that did_change() isn't called in readonly mode.

This commit is contained in:
Andreas Kling 2019-06-23 08:23:37 +02:00
parent 6a0011dcea
commit 2cebf78fad

View file

@ -1014,6 +1014,7 @@ void GTextEditor::leave_event(CEvent&)
void GTextEditor::did_change() void GTextEditor::did_change()
{ {
ASSERT(!is_readonly());
update_content_size(); update_content_size();
if (!m_have_pending_change_notification) { if (!m_have_pending_change_notification) {
m_have_pending_change_notification = true; m_have_pending_change_notification = true;