From 92d81c58443e7c7a1b025229227f752747015a41 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 13 Dec 2020 22:09:21 +0100 Subject: [PATCH] WIP: cold proxies are written to GDS2 and OASIS too. This means we keep the library references even if we load and save with the wrong libraries or technology. --- src/db/db/dbLayout.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/db/db/dbLayout.cc b/src/db/db/dbLayout.cc index 6ff5baecf..ad60aad38 100644 --- a/src/db/db/dbLayout.cc +++ b/src/db/db/dbLayout.cc @@ -2472,6 +2472,13 @@ bool Layout::get_context_info (cell_index_type cell_index, ProxyContextInfo &info) const { const db::Cell *cptr = &cell (cell_index); + + const db::ColdProxy *cold_proxy = dynamic_cast (cptr); + if (cold_proxy) { + info = cold_proxy->context_info (); + return true; + } + const db::Layout *ly = this; const db::LibraryProxy *lib_proxy;