aboutsummaryrefslogtreecommitdiff
path: root/src/dw-hdfsee.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-03 16:52:03 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:17 +0100
commit24af59f48cd85289eb1f7834e2a9856d39c7a995 (patch)
tree97e3cd164ab7e19ca081a5edc54ad210343bbbfd /src/dw-hdfsee.c
parenta4e80d2ae288579b6f0d6967fee90aa57c0c25c3 (diff)
hdfsee: Resolution lines shouldn't overlap with the colour scale
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r--src/dw-hdfsee.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index 8a39d966..d0b23bbe 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -224,14 +224,6 @@ static int draw_stuff(cairo_surface_t *surf, DisplayWindow *dw)
}
- if ( (dw->show_col_scale) && (dw->col_scale != NULL) ) {
- cairo_identity_matrix(cr);
- cairo_translate(cr, dw->width, 0.0);
- cairo_rectangle(cr, 0.0, 0.0, 20.0, dw->height);
- gdk_cairo_set_source_pixbuf(cr, dw->col_scale, 0.0, 0.0);
- cairo_fill(cr);
- }
-
if ( dw->show_rings ) {
/* Mark the beam */
@@ -251,6 +243,14 @@ static int draw_stuff(cairo_surface_t *surf, DisplayWindow *dw)
}
+ if ( (dw->show_col_scale) && (dw->col_scale != NULL) ) {
+ cairo_identity_matrix(cr);
+ cairo_translate(cr, dw->width, 0.0);
+ cairo_rectangle(cr, 0.0, 0.0, 20.0, dw->height);
+ gdk_cairo_set_source_pixbuf(cr, dw->col_scale, 0.0, 0.0);
+ cairo_fill(cr);
+ }
+
if ( dw->image->features == NULL ) {
cairo_destroy(cr);
return 0;