From b35113b80e7233d84f34263591037d5aba472a4c Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Tue, 18 Apr 2023 22:52:05 +0200 Subject: [PATCH] Bugfix. --- .../oasis/db_plugin/dbOASISWriter.cc | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/plugins/streamers/oasis/db_plugin/dbOASISWriter.cc b/src/plugins/streamers/oasis/db_plugin/dbOASISWriter.cc index ec461199a..bb4b13576 100644 --- a/src/plugins/streamers/oasis/db_plugin/dbOASISWriter.cc +++ b/src/plugins/streamers/oasis/db_plugin/dbOASISWriter.cc @@ -1383,17 +1383,13 @@ OASISWriter::write (db::Layout &layout, tl::OutputStream &stream, const db::Save if (options.write_context_info () && m_propnames.find (std::string (klayout_context_name)) == m_propnames.end ()) { bool has_context = false; - { - LayoutOrCellContextInfo info; - has_context = layout.has_context_info () && layout.get_context_info (info); - } for (auto cell = cells.begin (); cell != cells.end () && ! has_context; ++cell) { LayoutOrCellContextInfo ci; has_context = layout.has_context_info (*cell) && layout.get_context_info (*cell, ci); } if (has_context) { - m_propnames.insert (std::make_pair (std::string (klayout_context_name), ++m_propname_id)); + m_propnames.insert (std::make_pair (std::string (klayout_context_name), m_propname_id++)); begin_table (propnames_table_pos); write_record_id (7); write_nstring (klayout_context_name); @@ -1466,19 +1462,6 @@ OASISWriter::write (db::Layout &layout, tl::OutputStream &stream, const db::Save // emit property string id's required for the PCell and meta info context information std::vector context_prop_strings; - if (layout.has_context_info () && layout.get_context_info (context_prop_strings)) { - - for (std::vector ::const_iterator c = context_prop_strings.begin (); c != context_prop_strings.end (); ++c) { - if (m_propstrings.insert (std::make_pair (*c, m_propstring_id)).second) { - begin_table (propstrings_table_pos); - write_record_id (9); - write_bstring (c->c_str ()); - ++m_propstring_id; - } - } - - } - for (std::vector::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) { m_progress.set (mp_stream->pos ());