summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-28 15:53:16 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-28 15:53:16 -0700
commit912ce7941fcc522d208b92fafd51b64816151bdc (patch)
tree9aedcf4b6a9153854dc3cfacb3eb2794302f5ccb
parent145c470bc3b5a676625ff98c96938662e27ee2d5 (diff)
downloadsubsurface-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.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/profile.c b/profile.c
index 0e5361704..23ff4910c 100644
--- a/profile.c
+++ b/profile.c
@@ -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;