From 82f64c8002c3128d195649f62706aa09a9f3a37f Mon Sep 17 00:00:00 2001 From: ShubhamDesai <42180509+ShubhamDesai@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:06:50 -0400 Subject: [PATCH] Update lib/vector/Vlib/copy.c Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lib/vector/Vlib/copy.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/vector/Vlib/copy.c b/lib/vector/Vlib/copy.c index c3d926b007..0cdceaf1d3 100644 --- a/lib/vector/Vlib/copy.c +++ b/lib/vector/Vlib/copy.c @@ -133,9 +133,10 @@ int Vect_copy_map_lines_field(struct Map_info *In, int field, /* check output feature type, centroids can be exported as * points; boundaries as linestrings */ geometry_type = Vect_get_finfo_geometry_type(Out); - if (geometry_type && strcmp(geometry_type, "polygon") == 0) { - /* copy areas - external formats and simple features access only */ - ret += Vect__copy_areas(In, field, Out); + if (geometry_type && strcmp(geometry_type, "polygon") == 0) { + /* copy areas - external formats and simple features access only + */ + ret += Vect__copy_areas(In, field, Out); } G_free(geometry_type); }