]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Remove average depth from print
authorDirk Hohndel <dirk@hohndel.org>
Wed, 28 Sep 2011 22:53:16 +0000 (15:53 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Wed, 28 Sep 2011 22:53:16 +0000 (15:53 -0700)
It looks confusing in black and white

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
profile.c

index 0e5361704fc88cca0214919732b63894b4bb7fa5..23ff4910c2785339721c1d760396e99438f61610 100644 (file)
--- 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;