diff options
-rw-r--r-- | deps/libmscgen/gd.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/deps/libmscgen/gd.c b/deps/libmscgen/gd.c index a9a8aa6..7176783 100644 --- a/deps/libmscgen/gd.c +++ b/deps/libmscgen/gd.c @@ -2855,14 +2855,6 @@ BGD_DECLARE(gdImagePtr) gdImageClone (gdImagePtr src) { } } - if (src->styleLength > 0) { - dst->styleLength = src->styleLength; - dst->stylePos = src->stylePos; - for (i = 0; i < src->styleLength; i++) { - dst->style[i] = src->style[i]; - } - } - dst->interlace = src->interlace; dst->alphaBlendingFlag = src->alphaBlendingFlag; @@ -2897,6 +2889,7 @@ BGD_DECLARE(gdImagePtr) gdImageClone (gdImagePtr src) { if (src->style) { gdImageSetStyle(dst, src->style, src->styleLength); + dst->stylePos = src->stylePos; } for (i = 0; i < gdMaxColors; i++) { |