X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=profile.c;h=23ff4910c2785339721c1d760396e99438f61610;hb=529412aa379ead5beaa9e66c19fbc127d24b9ed4;hp=0e5361704fc88cca0214919732b63894b4bb7fa5;hpb=2a8f7ab78f8d00b699b683b122ad2cf0ddc094b6;p=ext%2Fsubsurface.git diff --git a/profile.c b/profile.c index 0e53617..23ff491 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;