diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-30 19:11:31 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-30 19:11:31 +0100 |
commit | d27e5a77e76ee7dfc2253aac0abb2e31fe8f6070 (patch) | |
tree | 8b87964f397b61519b228914cc9191ae0c872749 | |
parent | 6f70238a32289262e73efba8c322b244ddf23cb9 (diff) | |
download | serenity-d27e5a77e76ee7dfc2253aac0abb2e31fe8f6070.zip |
GTextEditor: Don't assert is_readonly() in did_change()
This callback will be invoked when calling set_text() to set the
initial contents of a GTextEditor, and that's okay.
-rw-r--r-- | Libraries/LibGUI/GTextEditor.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Libraries/LibGUI/GTextEditor.cpp b/Libraries/LibGUI/GTextEditor.cpp index cce9eefdef..401b981531 100644 --- a/Libraries/LibGUI/GTextEditor.cpp +++ b/Libraries/LibGUI/GTextEditor.cpp @@ -1139,7 +1139,6 @@ void GTextEditor::leave_event(CEvent&) void GTextEditor::did_change() { - ASSERT(!is_readonly()); update_content_size(); recompute_all_visual_lines(); m_undo_action->set_enabled(can_undo()); |