mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-23 22:58:44 +00:00
tvg_saver: fix 'order' serialization
Serialization of the "order" attribute caused the bytes counter to be overwritten, resulting in the created TVG file being corrupted. Correctly created tag.tvg file has been included as a test resource..
This commit is contained in:
parent
4c57a64a82
commit
a56fc81733
2 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ TvgBinCounter TvgSaver::serializeStroke(const Shape* shape, const Matrix* pTrans
|
|||
|
||||
//order
|
||||
if (auto flag = static_cast<TvgBinFlag>(P(shape)->strokeFirst()))
|
||||
writeTagProperty(TVG_TAG_SHAPE_STROKE_ORDER, SIZE(TvgBinFlag), &flag);
|
||||
cnt += writeTagProperty(TVG_TAG_SHAPE_STROKE_ORDER, SIZE(TvgBinFlag), &flag);
|
||||
|
||||
//fill
|
||||
if (auto fill = shape->strokeFill()) {
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue