aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/displaywindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c
index ebcaddd6..84f89347 100644
--- a/src/displaywindow.c
+++ b/src/displaywindow.c
@@ -586,7 +586,7 @@ static void numbers_update(DisplayWindow *dw)
int x, y;
x = dw->binning * dw->numbers_window->cx + (px-8);
- y = dw->binning * (dw->height-dw->numbers_window->cy) + (py-8);
+ y = dw->binning * dw->numbers_window->cy + (py-8);
if ( (x>0) && (y>0) &&
!hdfile_get_unbinned_value(dw->hdfile, x, y, &val) ) {