mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +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
fd6385a17b
commit
e8702de059
2 changed files with 1 additions and 1 deletions
|
@ -458,7 +458,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