mirror of https://github.com/KLayout/klayout.git
Fixed a crash in the netlist browser (pending highlights while netlist has been changed)
This commit is contained in:
parent
9e3183250f
commit
518145fd3e
|
|
@ -732,6 +732,8 @@ type_to_s (const gsi::ArgType &a, bool linked, bool for_return)
|
||||||
s += "float"; break;
|
s += "float"; break;
|
||||||
case gsi::T_string:
|
case gsi::T_string:
|
||||||
s += "string"; break;
|
s += "string"; break;
|
||||||
|
case gsi::T_byte_array:
|
||||||
|
s += "bytes"; break;
|
||||||
case gsi::T_var:
|
case gsi::T_var:
|
||||||
s += "variant"; break;
|
s += "variant"; break;
|
||||||
case gsi::T_object:
|
case gsi::T_object:
|
||||||
|
|
|
||||||
|
|
@ -800,7 +800,7 @@ NetlistBrowserPage::set_db (db::LayoutToNetlist *l2ndb)
|
||||||
show_xref->setChecked (lvsdb != 0);
|
show_xref->setChecked (lvsdb != 0);
|
||||||
m_signals_enabled = se;
|
m_signals_enabled = se;
|
||||||
|
|
||||||
clear_markers ();
|
clear_highlights ();
|
||||||
|
|
||||||
m_cell_context_cache = db::ContextCache (mp_database.get () ? mp_database->internal_layout () : 0);
|
m_cell_context_cache = db::ContextCache (mp_database.get () ? mp_database->internal_layout () : 0);
|
||||||
|
|
||||||
|
|
@ -892,6 +892,15 @@ NetlistBrowserPage::setup_trees ()
|
||||||
find_text->setText (QString ());
|
find_text->setText (QString ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
NetlistBrowserPage::clear_highlights ()
|
||||||
|
{
|
||||||
|
m_current_path = lay::NetlistObjectsPath ();
|
||||||
|
m_selected_paths.clear ();
|
||||||
|
|
||||||
|
update_highlights ();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
NetlistBrowserPage::highlight (const NetlistObjectsPath ¤t_path, const std::vector<NetlistObjectsPath> &selected_paths)
|
NetlistBrowserPage::highlight (const NetlistObjectsPath ¤t_path, const std::vector<NetlistObjectsPath> &selected_paths)
|
||||||
{
|
{
|
||||||
|
|
@ -900,9 +909,8 @@ NetlistBrowserPage::highlight (const NetlistObjectsPath ¤t_path, const std
|
||||||
m_current_path = current_path;
|
m_current_path = current_path;
|
||||||
m_selected_paths = selected_paths;
|
m_selected_paths = selected_paths;
|
||||||
|
|
||||||
clear_markers ();
|
|
||||||
adjust_view ();
|
|
||||||
update_highlights ();
|
update_highlights ();
|
||||||
|
adjust_view ();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -247,6 +247,7 @@ private:
|
||||||
void adjust_view ();
|
void adjust_view ();
|
||||||
void clear_markers ();
|
void clear_markers ();
|
||||||
void highlight (const NetlistObjectsPath ¤t_path, const std::vector<NetlistObjectsPath> &selected_paths);
|
void highlight (const NetlistObjectsPath ¤t_path, const std::vector<NetlistObjectsPath> &selected_paths);
|
||||||
|
void clear_highlights ();
|
||||||
std::vector<const db::Net *> selected_nets ();
|
std::vector<const db::Net *> selected_nets ();
|
||||||
std::vector<const db::Device *> selected_devices ();
|
std::vector<const db::Device *> selected_devices ();
|
||||||
std::vector<const db::SubCircuit *> selected_subcircuits ();
|
std::vector<const db::SubCircuit *> selected_subcircuits ();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue