From 9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 5 May 2018 18:22:00 +0200 Subject: New upstream version 5.1.1 --- app/bin/cdraw.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/bin/cdraw.c') diff --git a/app/bin/cdraw.c b/app/bin/cdraw.c index 418f32a..a4a35bd 100644 --- a/app/bin/cdraw.c +++ b/app/bin/cdraw.c @@ -168,6 +168,15 @@ static track_p MakeDrawFromSeg1( xx->angle = angle; xx->segCnt = 1; memcpy( xx->segs, sp, sizeof *(trkSeg_p)0 ); + + if (xx->segs[0].type == SEG_POLY || + xx->segs[0].type == SEG_FILPOLY) { + xx->segs[0].u.p.pts = (coOrd*)MyMalloc( (sp->u.p.cnt) * sizeof *(coOrd*)NULL ); + memcpy(xx->segs[0].u.p.pts, sp->u.p.pts, sp->u.p.cnt * sizeof *(coOrd*)NULL); + } + if (xx->segs[0].type == SEG_TEXT) { + xx->segs[0].u.t.string = MyStrdup(sp->u.t.string); + } ComputeDrawBoundingBox( trk ); return trk; } -- cgit v1.2.3