X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=profile.c;h=23ff4910c2785339721c1d760396e99438f61610;hb=912ce7941fcc522d208b92fafd51b64816151bdc;hp=0e5361704fc88cca0214919732b63894b4bb7fa5;hpb=145c470bc3b5a676625ff98c96938662e27ee2d5;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;