about summary refs log tree commit diff
path: root/editor/pamrubber.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-12-25 19:25:29 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-12-25 19:25:29 +0000
commitc2dc78471d3e5377df3776e54aa0b35aa3170233 (patch)
tree9ebac87db5c757fffb00e61c6efb505eea509649 /editor/pamrubber.c
parent425de37d2f9cde3b624819d5cb326e11afaf355e (diff)
downloadnetpbm-mirror-c2dc78471d3e5377df3776e54aa0b35aa3170233.tar.gz
netpbm-mirror-c2dc78471d3e5377df3776e54aa0b35aa3170233.tar.xz
netpbm-mirror-c2dc78471d3e5377df3776e54aa0b35aa3170233.zip
Release 10.73.30
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@3716 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pamrubber.c')
-rw-r--r--editor/pamrubber.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/pamrubber.c b/editor/pamrubber.c
index 4378c340..1890ac58 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;