diff options
author | Thomas White <taw@physics.org> | 2011-03-08 11:41:04 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:18 +0100 |
commit | d8eeb1fb13301ddbffb054af4cd86f82f8e32c0b (patch) | |
tree | 3b5b419197287f09c112984e261be504686c9291 | |
parent | d978bbf02ade72c8b46728d1492bf2956e9b9d95 (diff) |
hdfsee: Don't draw rings if geometry not in use
-rw-r--r-- | src/dw-hdfsee.c | 2 |
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); |