|
@@ -130,6 +130,10 @@ int display_area(struct Map_info *Map, struct cat_list *Clist, const struct Cell
|
|
/* fill */
|
|
/* fill */
|
|
Vect_get_area_points(Map, area, APoints);
|
|
Vect_get_area_points(Map, area, APoints);
|
|
G_debug(3, "\tn_points = %d", APoints->n_points);
|
|
G_debug(3, "\tn_points = %d", APoints->n_points);
|
|
|
|
+ if (APoints->n_points < 3) {
|
|
|
|
+ G_warning(_("Invalid area %d skipped"), area);
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
Vect_reset_line(Points);
|
|
Vect_reset_line(Points);
|
|
Vect_append_points(Points, APoints, GV_FORWARD);
|
|
Vect_append_points(Points, APoints, GV_FORWARD);
|
|
|
|
|