diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-12-08 00:47:23 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-12-08 00:47:23 +0000 |
commit | f32ed71c8569794ef38e082dd7d3acb8cb54f115 (patch) | |
tree | 86aadf5a8f437d0efb650ee914de9da7c004de17 /editor | |
parent | c85874d9f895c71c413a660b09eae3c552ccd60a (diff) | |
download | netpbm-mirror-f32ed71c8569794ef38e082dd7d3acb8cb54f115.tar.gz netpbm-mirror-f32ed71c8569794ef38e082dd7d3acb8cb54f115.tar.xz netpbm-mirror-f32ed71c8569794ef38e082dd7d3acb8cb54f115.zip |
Fix -frame
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3714 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r-- | editor/pamrubber.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/pamrubber.c b/editor/pamrubber.c index 9ded9754..602701ec 100644 --- a/editor/pamrubber.c +++ b/editor/pamrubber.c @@ -675,7 +675,7 @@ clippedPoint(const struct pam * const pamP, point const p) { int const roundedX = ROUND(p.x); - int const roundedY = ROUND(p.x); + int const roundedY = ROUND(p.y); int clippedX, clippedY; @@ -691,8 +691,8 @@ clippedPoint(const struct pam * const pamP, if (roundedY <= 0) clippedY = 1; - else if (roundedY > pamP->width - 1) - clippedY = pamP->width - 2; + else if (roundedY > pamP->height - 1) + clippedY = pamP->height - 2; else clippedY = roundedY; |