From d8eeb1fb13301ddbffb054af4cd86f82f8e32c0b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 8 Mar 2011 11:41:04 +0100 Subject: hdfsee: Don't draw rings if geometry not in use --- src/dw-hdfsee.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3