aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-08 11:41:04 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:18 +0100
commitd8eeb1fb13301ddbffb054af4cd86f82f8e32c0b (patch)
tree3b5b419197287f09c112984e261be504686c9291
parentd978bbf02ade72c8b46728d1492bf2956e9b9d95 (diff)
hdfsee: Don't draw rings if geometry not in use
-rw-r--r--src/dw-hdfsee.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index 051f133d..e30b8ea6 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -94,6 +94,8 @@ static double ring_radius(struct image *image, double d)
static void show_ring(cairo_t *cr, DisplayWindow *dw,
double d, const char *label)
{
+ if ( !dw->use_geom ) return;
+
cairo_text_extents_t size;
cairo_identity_matrix(cr);
cairo_translate(cr, -dw->min_x/dw->binning, dw->max_y/dw->binning);