mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
tvg_saver: fix the invalid data size.
sizeof(colors) indicates its pointer size, we actually intended to the structure size.
This commit is contained in:
parent
5e3011f86e
commit
30ebf35c13
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -198,7 +198,7 @@ TvgBinCounter TvgSaver::serializeFill(const Fill* fill, TvgBinTag tag)
|
|||
|
||||
if (auto flag = static_cast<TvgBinFlag>(fill->spread()))
|
||||
cnt += writeTagProperty(TVG_TAG_FILL_FILLSPREAD, SIZE(TvgBinFlag), &flag);
|
||||
cnt += writeTagProperty(TVG_TAG_FILL_COLORSTOPS, stopsCnt * sizeof(stops), stops);
|
||||
cnt += writeTagProperty(TVG_TAG_FILL_COLORSTOPS, stopsCnt * sizeof(Fill::ColorStop), stops);
|
||||
|
||||
writeReservedCount(cnt);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue