From 6178221898c78574bf01fd11e7bdf87d9a7f5bd0 Mon Sep 17 00:00:00 2001 From: Markus Metz <33666869+metzm@users.noreply.github.com> Date: Tue, 9 Jan 2024 20:41:45 +0100 Subject: [PATCH] lib/vector/Vlib: fix count of removed dangles (#3348) Previously, the count of removed dangles reported the count of all dangles. This PR adjusts the count of dangles to only report the count of removed dangles, in accordance with the issued message. --- lib/vector/Vlib/dangles.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/vector/Vlib/dangles.c b/lib/vector/Vlib/dangles.c index 8446efb228f..51bf4b832a0 100644 --- a/lib/vector/Vlib/dangles.c +++ b/lib/vector/Vlib/dangles.c @@ -252,11 +252,10 @@ static void dangles(struct Map_info *Map, int type, int option, } lines_removed++; } + dangles_removed++; } /* delete the chain */ - - dangles_removed++; - } /* lcount == 1 */ - } /* node <= nnodes */ + } /* lcount == 1 */ + } /* node <= nnodes */ G_verbose_message(_("%s lines: %d"), lmsg, lines_removed); G_verbose_message(_("%s dangles: %d"), lmsg, dangles_removed); }