aboutsummaryrefslogtreecommitdiff
path: root/src/imagedisplay.c
diff options
context:
space:
mode:
authorThomas White <taw27@cam.ac.uk>2008-11-04 10:50:12 +0000
committerThomas White <taw27@cam.ac.uk>2008-11-04 10:50:12 +0000
commit7992f60bbb46bb8fff758b41e45f7dc28c31012e (patch)
tree3452ede7027b5635475c39803bf6d4fd61aae646 /src/imagedisplay.c
parenta38d93733759b5e515bc75378c0b4fc53aad0440 (diff)
Don't draw a scale bar on the summed image stack
Diffstat (limited to 'src/imagedisplay.c')
-rw-r--r--src/imagedisplay.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imagedisplay.c b/src/imagedisplay.c
index ca730e5..8915c41 100644
--- a/src/imagedisplay.c
+++ b/src/imagedisplay.c
@@ -231,7 +231,9 @@ static gboolean imagedisplay_redraw(GtkWidget *drawingarea, GdkEventExpose *even
}
/* Add scale bar */
- imagedisplay_add_scalebar(imagedisplay, drawingarea, scale, xoffs, yoffs);
+ if ( imagedisplay->flags & IMAGEDISPLAY_SCALE_BAR ) {
+ imagedisplay_add_scalebar(imagedisplay, drawingarea, scale, xoffs, yoffs);
+ }
/* NB This calls the function above, which sorts out stuff */
if ( imagedisplay->flags & IMAGEDISPLAY_SHOW_CENTRE ) {