---
scribo/scribo/primitive/extract/lines_h_pattern.hh | 2 +-
scribo/scribo/primitive/extract/lines_v_pattern.hh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scribo/scribo/primitive/extract/lines_h_pattern.hh
b/scribo/scribo/primitive/extract/lines_h_pattern.hh
index 6a1f7f0..28be492 100644
--- a/scribo/scribo/primitive/extract/lines_h_pattern.hh
+++ b/scribo/scribo/primitive/extract/lines_h_pattern.hh
@@ -106,7 +106,7 @@ namespace scribo
mln_concrete(I) output = lines_pattern(input, length, 1, win);
- unsigned new_length = length / 2 + delta;
+ unsigned new_length = length + delta;
new_length += 1 - (new_length % 2); // Guaranty that new_length is odd.
mln_concrete(I)
diff --git a/scribo/scribo/primitive/extract/lines_v_pattern.hh
b/scribo/scribo/primitive/extract/lines_v_pattern.hh
index 8a103ac..ada70eb 100644
--- a/scribo/scribo/primitive/extract/lines_v_pattern.hh
+++ b/scribo/scribo/primitive/extract/lines_v_pattern.hh
@@ -88,7 +88,7 @@ namespace scribo
mln_concrete(I) output = lines_pattern(input, length, 0, win);
- unsigned new_length = length / 2 + delta;
+ unsigned new_length = length + delta;
new_length += 1 - (new_length % 2); // Guaranty that new_length is odd.
mln_concrete(I)
--
1.5.6.5
Show replies by date