mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-03 08:26:27 +02:00
Potential segfault fixed: skip invalid cell views
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user