Skip to content

Commit

Permalink
lib/vector/Vlib: fix count of removed dangles (OSGeo#3348)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
metzm committed Jan 9, 2024
1 parent 58318e8 commit 6178221
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/vector/Vlib/dangles.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 6178221

Please sign in to comment.