fix: possible crash with vistable rebuild (ref #443)

This commit is contained in:
jeefo 2023-05-07 21:28:24 +03:00
commit 70ff2d0ec2
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED

View file

@ -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;