Fixed a nasty issue with editable mode.

This commit is contained in:
Matthias Koefferlein 2019-02-18 23:34:46 +01:00
parent 7f71cc3a56
commit 3918172c6a
2 changed files with 5 additions and 2 deletions

View File

@ -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 ..
}

View File

@ -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");