aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-07-28 16:48:13 +0200
committerThomas White <taw@physics.org>2016-07-29 11:53:46 +0200
commit3de724847a8df097f31df5a2f5aa5ff11a5e239d (patch)
tree41efc1433e4d8e8908edfdb2a684c44c2a151e83 /src
parent9f7a7fc4571b1b57eee243d26b8778ac9556ffaf (diff)
hdfsee: Fix coordinates
Diffstat (limited to 'src')
-rw-r--r--src/dw-hdfsee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index 02627c99..34c7d166 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -2518,7 +2518,7 @@ static void calibmode_press(DisplayWindow *dw, GdkEventButton *event)
x = dw->binning * (event->x);
y = dw->binning * (dw->height - 1 - event->y);
x += dw->min_x;
- y += dw->min_x;
+ y += dw->min_y;
snprintf(statusbar_string, 80,
"Last clicked position: x: %i, y: %i (Not in panel)", x, y);