# HG changeset patch # User Alpar Juttner # Date 1303831471 -7200 # Node ID d9a2bf30b3601fbcf5d15202a15665f09f1c5358 # Parent 60f4aaedb20f249987a5fc6488da3b3bbdc83e37# Parent 633956ca94216c105406ba14c38f1c73199289a3 Merge bugfix #420 to branch 1.2 diff -r 60f4aaedb20f -r d9a2bf30b360 lemon/maps.h --- a/lemon/maps.h Tue Apr 12 07:52:25 2011 +0200 +++ b/lemon/maps.h Tue Apr 26 17:24:31 2011 +0200 @@ -3252,7 +3252,7 @@ virtual void add(const Key& key) { Parent::add(key); - unlace(key); + lace(key); } virtual void add(const std::vector& keys) { diff -r 60f4aaedb20f -r d9a2bf30b360 test/maps_test.cc --- a/test/maps_test.cc Tue Apr 12 07:52:25 2011 +0200 +++ b/test/maps_test.cc Tue Apr 26 17:24:31 2011 +0200 @@ -641,6 +641,7 @@ const int num = 10; Graph g; + Ibm map0(g, true); std::vector items; for (int i = 0; i < num; ++i) { items.push_back(g.addNode()); @@ -722,6 +723,7 @@ const int num = 10; Graph g; + Iim map0(g, 0); std::vector items; for (int i = 0; i < num; ++i) { items.push_back(g.addNode()); @@ -772,6 +774,7 @@ const int num = 10; Graph g; + Ivm map0(g, 0.0); std::vector items; for (int i = 0; i < num; ++i) { items.push_back(g.addNode());