From 2cebf78fad50d5406492b3293b0484b973c9bbea Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 23 Jun 2019 08:23:37 +0200 Subject: [PATCH] GTextEditor: Add assertion that did_change() isn't called in readonly mode. --- LibGUI/GTextEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/LibGUI/GTextEditor.cpp b/LibGUI/GTextEditor.cpp index 7122d25c74..5835e01641 100644 --- a/LibGUI/GTextEditor.cpp +++ b/LibGUI/GTextEditor.cpp @@ -1014,6 +1014,7 @@ void GTextEditor::leave_event(CEvent&) void GTextEditor::did_change() { + ASSERT(!is_readonly()); update_content_size(); if (!m_have_pending_change_notification) { m_have_pending_change_notification = true;