From 65c85b39ea8bd6cfcb1ab8a7b70726872bad461a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 4 Jan 2013 11:54:38 -0800 Subject: Make sure that the calculated deco ends at 0 Without this the cairo_close_path call could do silly looking things (intersecting polygons...). Reported-by: "Robert C. Helling" Signed-off-by: Dirk Hohndel --- profile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/profile.c b/profile.c index 6de888607..cabf49162 100644 --- a/profile.c +++ b/profile.c @@ -824,6 +824,7 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi else line_to(gc, entry->sec, 0); } + line_to(gc, (entry-1)->sec, 0); /* make sure we end at 0 */ cairo_close_path(gc->cr); cairo_fill(gc->cr); } -- cgit v1.2.3-70-g09d2