Potential segfault fixed: skip invalid cell views

This commit is contained in:
Matthias Koefferlein 2022-05-27 19:20:37 +02:00
parent 001d695fcc
commit ad87b22d91
1 changed files with 1 additions and 1 deletions

View File

@ -3390,7 +3390,7 @@ LayoutViewBase::timer ()
{
bool dirty = false;
for (std::list<lay::CellView>::const_iterator i = m_cellviews.begin (); i != m_cellviews.end () && ! dirty; ++i) {
dirty = (*i)->layout ().is_editable () && (*i)->is_dirty ();
dirty = (*i).is_valid () && (*i)->layout ().is_editable () && (*i)->is_dirty ();
}
if (dirty != m_dirty) {