mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
LibGUI: Don't update cursor, if visual data out-of-date
This fixes https://github.com/SerenityOS/serenity/issues/2498 A nullptr dereference was caused by the visual data beeing out of sync with the line data, due to a deferred recompute.
This commit is contained in:
parent
e0f4fdc9b4
commit
17aa917073
2 changed files with 9 additions and 2 deletions
|
@ -259,7 +259,9 @@ private:
|
|||
NonnullRefPtrVector<Action> m_custom_context_menu_actions;
|
||||
|
||||
size_t m_reflow_deferred { 0 };
|
||||
size_t m_reflow_requested { 0 };
|
||||
bool m_reflow_requested { false };
|
||||
|
||||
bool is_visual_data_up_to_date() const { return !m_reflow_requested; }
|
||||
|
||||
RefPtr<TextDocument> m_document;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue