summaryrefslogtreecommitdiff
path: root/app/bin/cstruct.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-05 18:22:00 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-05 18:22:00 +0200
commit9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 (patch)
tree10d84c82031aace7ac819f27116a04e7da238d59 /app/bin/cstruct.c
parentd1a8285f818eb7e5c3d6a05709ea21a808490b8c (diff)
New upstream version 5.1.1upstream/5.1.1
Diffstat (limited to 'app/bin/cstruct.c')
-rw-r--r--app/bin/cstruct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/bin/cstruct.c b/app/bin/cstruct.c
index 41c47e5..6ad240c 100644
--- a/app/bin/cstruct.c
+++ b/app/bin/cstruct.c
@@ -122,6 +122,7 @@ EXPORT turnoutInfo_t * CreateNewStructure(
}
to->segCnt = segCnt;
to->segs = (trkSeg_p)memdup( segData, (sizeof *segData) * segCnt );
+ CopyPoly(to->segs,segCnt);
GetSegBounds( zero, 0.0, to->segCnt, to->segs, &to->orig, &to->size );
#ifdef REORIGSTRUCT
GetSegBounds( zero, 0.0, to->segCnt, to->segs, &orig, &to->size );