aboutsummaryrefslogtreecommitdiff
path: root/src/displaywindow.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-08 14:54:23 +0100
committerThomas White <taw@physics.org>2010-01-08 14:54:23 +0100
commited795ee42e10c2fc3176d960a5c8b8ea29d3ea8a (patch)
tree499a8993255a9c6f6cc75ad0178ae9a33764919a /src/displaywindow.c
parentc2244a71c1f15ef2c8bf333de71d1d033f04c896 (diff)
Put numbers back the right way up
Diffstat (limited to 'src/displaywindow.c')
-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) ) {