Skip to content

Commit

Permalink
Fixed #64 (crash on exit)
Browse files Browse the repository at this point in the history
  • Loading branch information
klayoutmatthias committed Jan 13, 2018
1 parent a2ba300 commit 8b479bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/laybasic/laybasic/layCellView.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 8b479bd

Please sign in to comment.