From 6c9363cc4f9e2f1e63113608ab01f69fdb1e6659 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 18 Feb 2011 19:36:55 +0100 Subject: [PATCH] Fix pathrange()'s computation of the range's right limit Because of the bug, the path command's maps weren't always fitted to the path correctly. Broken in commit 0f458d2c, v4.3.17 --- src/lib/subs/paths.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/subs/paths.c b/src/lib/subs/paths.c index ac621540e..027e07a86 100644 --- a/src/lib/subs/paths.c +++ b/src/lib/subs/paths.c @@ -262,7 +262,7 @@ pathrange(coord cx, coord cy, char *pp, int border, struct range *range) hy += border; range->lx = xnorm(lx); - range->hx = ynorm(hx - lx < WORLD_X ? hx : lx - 1); + range->hx = xnorm(hx - lx < WORLD_X ? hx : lx - 1); range->ly = ynorm(ly); range->hy = ynorm(hy - ly < WORLD_Y ? hy : ly - 1); xysize_range(range); -- 2.43.0