diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-07-10 23:05:17 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-07-10 23:05:17 +0200 |
commit | c120c7bcbcf115ecc2a6668f4c7f45b3d4a5bc86 (patch) | |
tree | 5550610553d1b1d7236d052b6e956b22e0bb4883 /app/bin/cdraw.c | |
parent | 67d0ce65dc6a1d240e271a7cd479b60aa1dc2967 (diff) | |
parent | 26d299964db18cb71c2c6a5be4864479ba82d54f (diff) |
Merge branch 'release/debian/5.1.1-1'debian/5.1.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; } |