mirror of https://github.com/KLayout/klayout.git
Issue 1144 (#1150)
* [CONSIDER MERGING] Clarification and typo fixed in DRC doc. * Avoids a segfault during drawing: make sure the cell bbox update is not triggered in the drawing thread before it is stopped * Fixed #1144 (wrong layer taken on copy layer)
This commit is contained in:
parent
f6c5062c71
commit
9ebb923d83
|
|
@ -78,11 +78,11 @@ LayoutStateModel::invalidate_bboxes (unsigned int index)
|
|||
m_all_bboxes_dirty = true;
|
||||
}
|
||||
} else {
|
||||
if (index >= (unsigned int) m_bboxes_dirty.size ()) {
|
||||
m_bboxes_dirty.resize (index + 1, false);
|
||||
}
|
||||
if ((! m_all_bboxes_dirty && ! m_bboxes_dirty [index]) || m_busy) {
|
||||
if ((! m_all_bboxes_dirty && (index >= (unsigned int) m_bboxes_dirty.size () || ! m_bboxes_dirty [index])) || m_busy) {
|
||||
do_invalidate_bboxes (index); // must be called before the bboxes are invalidated (stopping of redraw thread requires this)
|
||||
if (index >= (unsigned int) m_bboxes_dirty.size ()) {
|
||||
m_bboxes_dirty.resize (index + 1, false);
|
||||
}
|
||||
m_bboxes_dirty [index] = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -390,10 +390,8 @@ BEGIN_PROTECTED
|
|||
|
||||
mp_private->view->manager ()->commit ();
|
||||
|
||||
insertItem (index, tl::to_qstring (lp.to_string ()));
|
||||
setCurrentIndex (index);
|
||||
|
||||
mp_private->layers.push_back (std::make_pair (lp, int (l)));
|
||||
// NOTE: add_new_layers has triggered update_layer_list which already added the new layer
|
||||
set_current_layer (lp);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue