diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-09-28 15:53:16 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-09-28 15:53:16 -0700 |
commit | 912ce7941fcc522d208b92fafd51b64816151bdc (patch) | |
tree | 9aedcf4b6a9153854dc3cfacb3eb2794302f5ccb | |
parent | 145c470bc3b5a676625ff98c96938662e27ee2d5 (diff) | |
download | subsurface-912ce7941fcc522d208b92fafd51b64816151bdc.tar.gz |
Remove average depth from print
It looks confusing in black and white
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | profile.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -306,10 +306,12 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi cairo_stroke(cr); /* Show mean depth */ - set_source_rgba(gc, 1, 0.2, 0.2, 0.40); - move_to(gc, 0, pi->meandepth); - line_to(gc, 1, pi->meandepth); - cairo_stroke(cr); + if (! gc->printer) { + set_source_rgba(gc, 1, 0.2, 0.2, 0.40); + move_to(gc, 0, pi->meandepth); + line_to(gc, 1, pi->meandepth); + cairo_stroke(cr); + } gc->leftx = 0; gc->rightx = maxtime; |