diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-05 18:22:00 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-05 18:22:00 +0200 |
commit | 9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 (patch) | |
tree | 10d84c82031aace7ac819f27116a04e7da238d59 /app/bin/cdraw.c | |
parent | d1a8285f818eb7e5c3d6a05709ea21a808490b8c (diff) |
New upstream version 5.1.1upstream/5.1.1
Diffstat (limited to 'app/bin/cdraw.c')
-rw-r--r-- | app/bin/cdraw.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; } |