---
scribo/ChangeLog | 5 +++++
.../scribo/primitive/extract/lines_discontinued.hh | 6 ++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 7c92acf..a1a9184 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,10 @@
2013-03-05 Guillaume Lazzara <z(a)lrde.epita.fr>
+ * scribo/primitive/extract/lines_discontinued.hh: Add a missing
+ call to exact().
+
+2013-03-05 Guillaume Lazzara <z(a)lrde.epita.fr>
+
* scribo/primitive/extract/lines_discontinued.hh: Fix invalid line
reconstruction.
diff --git a/scribo/scribo/primitive/extract/lines_discontinued.hh
b/scribo/scribo/primitive/extract/lines_discontinued.hh
index b2192ba..a6e976d 100644
--- a/scribo/scribo/primitive/extract/lines_discontinued.hh
+++ b/scribo/scribo/primitive/extract/lines_discontinued.hh
@@ -90,15 +90,17 @@ namespace scribo
void
lines_discontinued_tests(const Image<I>& input,
const Neighborhood<N>& nbh, V& nlines,
- const Window<W>& win, unsigned rank_k)
+ const Window<W>& win_, unsigned rank_k)
{
mlc_equal(mln_value(I),bool)::check();
mlc_bool(mln_site_(I)::dim == 2)::check();
mlc_is_a(V, mln::value::Symbolic)::check();
+ const W& win = exact(win_);
+
mln_precondition(exact(input).is_valid());
mln_precondition(exact(nbh).is_valid());
- mln_precondition(exact(win).is_valid());
+ mln_precondition(win.is_valid());
mln_precondition(win.length() > 2 * (rank_k + 1));
--
1.7.2.5
Show replies by date