aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValerio mariani <valerio.mariani@desy.de>2015-05-08 10:26:31 +0200
committerThomas White <taw@physics.org>2015-05-08 11:21:09 +0200
commita246f32bf4a30e0409cd19350bfe73d8cc3061d8 (patch)
tree0e16eb8a7a59a48eae82eab4cb51ca77dd1181a7
parent14077c5940b2b4a633a32a062ccb418c192102a8 (diff)
Fix for colour bar not reaching the maximum value
-rw-r--r--src/hdfsee-render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hdfsee-render.c b/src/hdfsee-render.c
index 9a7d92a7..71e2e1e8 100644
--- a/src/hdfsee-render.c
+++ b/src/hdfsee-render.c
@@ -226,7 +226,7 @@ GdkPixbuf *render_get_colour_scale(size_t w, size_t h, int scale)
data = malloc(3*w*h);
if ( data == NULL ) return NULL;
- max = h;
+ max = h-(h/6);
for ( y=0; y<h; y++ ) {