diff options
Diffstat (limited to 'draw/pathscan.c')
-rw-r--r-- | draw/pathscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/pathscan.c b/draw/pathscan.c index a1e09852..e177d788 100644 --- a/draw/pathscan.c +++ b/draw/pathscan.c @@ -145,7 +145,7 @@ fz_insertgelraw(fz_gel *gel, int x0, int y0, int x1, int y1) dy = y1 - y0; dx = x1 - x0; - width = dx < 0 ? -dx : dx; + width = ABS(dx); edge->xdir = dx > 0 ? 1 : -1; edge->ydir = winding; |