summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2023-08-17 20:40:01 -0400
committerGlenn Smith <glenn@vector35.com>2023-08-17 20:40:34 -0400
commit6526587833507887839937101310521721723170 (patch)
tree04252a3d3acd0ba186727c9cb5457b71c18f5d4b
parent1174e544b0283bd30962d0a6a528af0aca43367c (diff)
Better fix for linear view hang
Instead of updating a lot, have a bail condition to prevent future bugs
-rw-r--r--ui/linearview.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/linearview.h b/ui/linearview.h
index bb99ce19..6cff0734 100644
--- a/ui/linearview.h
+++ b/ui/linearview.h
@@ -215,6 +215,8 @@ class BINARYNINJAUIAPI LinearView : public QAbstractScrollArea, public View, pub
std::shared_mutex m_cacheMutex;
BinaryNinja::Ref<BinaryNinja::LinearViewCursor> m_topPosition, m_bottomPosition;
std::vector<LinearViewLine> m_lines;
+ size_t m_emptyPrevCursors;
+ size_t m_emptyNextCursors;
size_t m_topLine;
std::optional<double> m_topOrderingIndexOffset;