# HG changeset patch # User Alpar Juttner # Date 1303831500 -7200 # Node ID 4f9e5801224ef12167c04d2e0a77911040f9e34a # Parent 6660ac776acfa8b34833c74d0e67d292c720191e# Parent 633956ca94216c105406ba14c38f1c73199289a3 Merge bugfix #420 diff -r 6660ac776acf -r 4f9e5801224e lemon/maps.h --- a/lemon/maps.h Tue Apr 12 08:04:04 2011 +0200 +++ b/lemon/maps.h Tue Apr 26 17:25:00 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 6660ac776acf -r 4f9e5801224e test/maps_test.cc --- a/test/maps_test.cc Tue Apr 12 08:04:04 2011 +0200 +++ b/test/maps_test.cc Tue Apr 26 17:25:00 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());