]> git.pond.sub.org Git - empserver/commitdiff
Fix pathrange()'s computation of the range's right limit
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 18 Feb 2011 18:36:55 +0000 (19:36 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 28 Mar 2011 18:28:36 +0000 (20:28 +0200)
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

index ac621540e5d8c8bb9bf9ad4831b182b2f7c0fc82..027e07a86dd5bd022125ed5e302a23e52f1afede 100644 (file)
@@ -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);