mirror of https://github.com/KLayout/klayout.git
Fixed #64 (crash on exit)
This commit is contained in:
parent
a2ba300bd7
commit
8b479bd20a
|
|
@ -145,6 +145,10 @@ LayoutHandle::rename (const std::string &name, bool force) throw (tl::Exception)
|
|||
tl::info << "Renamed layout from " << m_name << " to " << n;
|
||||
}
|
||||
|
||||
if (find (m_name) == this) {
|
||||
ms_dict.erase (m_name);
|
||||
}
|
||||
|
||||
m_name = n;
|
||||
ms_dict.insert (std::make_pair (n, this));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue