aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-22 11:54:25 +0200
committerThomas White <taw@physics.org>2010-04-22 11:54:25 +0200
commitddcc0ca70fc946f0070ea7fc58cf97960c52d028 (patch)
tree4b6b6eebf3f69f8ec45b49d857a8f445127ce62b
parentf5eb3478dd760997237ba2567a081946a7f9613b (diff)
hdfsee: Honour binning when displaying feature names
-rw-r--r--src/displaywindow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c
index 1697003f..0580b0f6 100644
--- a/src/displaywindow.c
+++ b/src/displaywindow.c
@@ -655,8 +655,10 @@ static void numbers_update(DisplayWindow *dw)
if ( dw->image->features == NULL ) return;
- f = image_feature_closest(dw->image->features, dw->numbers_window->cx,
- dw->numbers_window->cy, &dmin, &imin);
+ f = image_feature_closest(dw->image->features,
+ dw->binning * dw->numbers_window->cx,
+ dw->binning * dw->numbers_window->cy,
+ &dmin, &imin);
if ( dmin < 20.0 ) {
gtk_label_set_text(GTK_LABEL(dw->numbers_window->feat),
f->name);