X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=print.c;h=57cac80757f3533c2ce458c9249cd5196d54365f;hb=9a853c564c9bb47bc91e74d54d69443eeb4c3449;hp=0fe958a008095a1ea596556cc1d15116ee21a263;hpb=e3176882490a012097ae2d158eb8ea0cfb2b5804;p=ext%2Fsubsurface.git diff --git a/print.c b/print.c index 0fe958a..57cac80 100644 --- a/print.c +++ b/print.c @@ -22,7 +22,8 @@ static void draw_page(GtkPrintOperation *operation, h = gtk_print_context_get_height(context); /* Do the profile on the top half of the page.. */ - plot(&gc, w, h/2, current_dive); + if (current_dive) + plot(&gc, w, h/2, current_dive); pango_cairo_show_layout(cr,layout); g_object_unref(layout);