diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-05 18:22:19 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2018-05-05 18:22:19 +0200 |
commit | 498011c44291d7d619143ce5ff3e38369d759c22 (patch) | |
tree | 5b4d1fdd686089c0c1778a462e27fa694b8f49be /app/bin/cdraw.c | |
parent | 67d0ce65dc6a1d240e271a7cd479b60aa1dc2967 (diff) | |
parent | 9a1d6eded2750572e9f5f79e53ec507dd7a06ba5 (diff) |
Update upstream source from tag 'upstream/5.1.1'
Update to upstream version '5.1.1'
with Debian dir 878f8cb06af8c1037570ac8774f9261ff9b12fa4
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; } |