* apps/graph-morpho/io.hh (println): Here.
---
milena/ChangeLog | 6 ++++++
milena/apps/graph-morpho/io.hh | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index f15185c..28adc2e 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-30 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Fix a precondition in apps/graph-morpho/io.hh.
+
+ * apps/graph-morpho/io.hh (println): Here.
+
2009-09-29 Roland Levillain <roland(a)lrde.epita.fr>
Small improvements in mln::util::tracked_ptr.
diff --git a/milena/apps/graph-morpho/io.hh b/milena/apps/graph-morpho/io.hh
index f2dfa9a..cdc54bb 100644
--- a/milena/apps/graph-morpho/io.hh
+++ b/milena/apps/graph-morpho/io.hh
@@ -162,7 +162,7 @@ println(const std::string& message, const
mln::bin_1complex_image2d& ima,
// These are admittedly loose preconditions, but we cannot check
// much anyway.
- mln_precondition(ima.nsites() == support.nsites());
+ mln_precondition(ima.domain().nfaces_of_dim(0) == support.nsites());
image2d<bool> vertices(support);
image2d<bool> h_edges(box2d(support.pmin(), support.pmax() - dpoint2d(0, 1)));
--
1.6.3.1