mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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" <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6dc247ff78
commit
65c85b39ea
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue