about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-12-25 19:31:31 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-12-25 19:31:31 +0000
commit278e20580cc2a30ee5b055192868617bb0d102de (patch)
tree6299fa192d28b4ecff05dc713d4178c6fbf6279a /editor
parent61904ede12e6d14724204f97f863c19fdc10d1e4 (diff)
downloadnetpbm-mirror-278e20580cc2a30ee5b055192868617bb0d102de.tar.gz
netpbm-mirror-278e20580cc2a30ee5b055192868617bb0d102de.tar.xz
netpbm-mirror-278e20580cc2a30ee5b055192868617bb0d102de.zip
Release 10.86.08
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@3718 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r--editor/pamrubber.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/pamrubber.c b/editor/pamrubber.c
index e7abd789..a5748104 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;