about summary refs log tree commit diff
path: root/other/pamx/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'other/pamx/window.c')
-rw-r--r--other/pamx/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/other/pamx/window.c b/other/pamx/window.c
index d907163b..d44008c9 100644
--- a/other/pamx/window.c
+++ b/other/pamx/window.c
@@ -366,7 +366,7 @@ placeImage(viewer * const viewerP,
         pixy = (viewerP->height - height) / 2;
     else {
         if ((pixy < 0) && (pixy + height < viewerP->height))
-            pixy = viewerP->height - viewerP->height;
+            pixy = viewerP->height - height;
         if (pixy > 0)
             pixy = 0;
     }