From 3918172c6a797852bbf3eb6d63dcf6b706d4794c Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Mon, 18 Feb 2019 23:34:46 +0100 Subject: [PATCH] Fixed a nasty issue with editable mode. --- src/db/db/dbDeepShapeStore.cc | 2 +- src/db/unit_tests/dbDeepEdgePairsTests.cc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/db/db/dbDeepShapeStore.cc b/src/db/db/dbDeepShapeStore.cc index a3d869c4a..2d43f7e8c 100644 --- a/src/db/db/dbDeepShapeStore.cc +++ b/src/db/db/dbDeepShapeStore.cc @@ -222,7 +222,7 @@ DeepLayer::check_dss () const struct DeepShapeStore::LayoutHolder { LayoutHolder () - : refs (0), layout (), builder (&layout) + : refs (0), layout (false), builder (&layout) { // .. nothing yet .. } diff --git a/src/db/unit_tests/dbDeepEdgePairsTests.cc b/src/db/unit_tests/dbDeepEdgePairsTests.cc index 374d25891..58845695a 100644 --- a/src/db/unit_tests/dbDeepEdgePairsTests.cc +++ b/src/db/unit_tests/dbDeepEdgePairsTests.cc @@ -95,7 +95,10 @@ TEST(1_Basics) target.insert (target_top_cell_index, target.get_layer (db::LayerProperties (11, 0)), edges); target.insert (target_top_cell_index, target.get_layer (db::LayerProperties (12, 0)), first_edges); target.insert (target_top_cell_index, target.get_layer (db::LayerProperties (13, 0)), second_edges); - db::EdgePairs (ep2).insert_into_as_polygons (&target, target_top_cell_index, target.get_layer (db::LayerProperties (14, 0)), 1); + + // NOTE: insert ep2 as layer 14/0 from a copy - this tests the ability to copy-construct an EP + db::EdgePairs ep2_copy (ep2); + ep2_copy.insert_into_as_polygons (&target, target_top_cell_index, target.get_layer (db::LayerProperties (14, 0)), 1); CHECKPOINT(); db::compare_layouts (_this, target, tl::testsrc () + "/testdata/algo/deep_edge_pairs_au1.gds");