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:
Mira Grudzinska 2024-06-25 23:42:08 +02:00 committed by Hermet Park
parent fd6385a17b
commit e8702de059
2 changed files with 1 additions and 1 deletions

View file

@ -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.