summaryrefslogtreecommitdiff
path: root/app/bin/cstruct.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-05 19:24:29 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-05-05 19:24:29 +0200
commit81184b836a6ddbeaca5f85781a052cb36424e37f (patch)
tree1965bd34b4e351e5148a1412e618555b72330117 /app/bin/cstruct.c
parent67d0ce65dc6a1d240e271a7cd479b60aa1dc2967 (diff)
parentc1f7a0251136f6327d14a85eb5a761489551b668 (diff)
Merge branch 'feature/upstream' into develop
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 );