From 70ff2d0ec25793b801ccbb80a622e2ed44377f9a Mon Sep 17 00:00:00 2001 From: jeefo Date: Sun, 7 May 2023 21:28:24 +0300 Subject: [PATCH] fix: possible crash with vistable rebuild (ref #443) --- src/vistable.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vistable.cpp b/src/vistable.cpp index f6804f2..47840bf 100644 --- a/src/vistable.cpp +++ b/src/vistable.cpp @@ -14,6 +14,11 @@ void GraphVistable::rebuild () { } m_length = graph.length (); + // stop generation if graph has changed, or erased + if (!m_length || graph.hasChanged ()) { + m_rebuild = false; + return; + } TraceResult tr {}; uint8_t res, shift;