tvg_saver: fix a wrong logic by mistake.

an incorrect logic was introduced by mistake.

that breaks the tvg memory chunks.

now recover it.

@Issues: https://github.com/Samsung/thorvg/issues/774
This commit is contained in:
Hermet Park 2021-09-07 18:54:42 +09:00 committed by Mira Grudzinska
parent e381edacb7
commit f652b33a27
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View file

@ -542,9 +542,9 @@ TvgBinCounter TvgSaver::serializeShape(const Shape* shape, const Matrix* pTransf
if (pTransform) transform = _multiply(pTransform, &transform);
//fill rule
if (auto flag = static_cast<TvgBinFlag>(shape->fillRule()))
if (auto flag = static_cast<TvgBinFlag>(shape->fillRule())) {
cnt = writeTagProperty(TVG_TAG_SHAPE_FILLRULE, SIZE(TvgBinFlag), &flag);
}
bool preTransform = true;
@ -602,10 +602,10 @@ TvgBinCounter TvgSaver::serializePicture(const Picture* picture, const Matrix* p
reserveCount();
auto cnt = serializeChildren(it, &transform, true) + serializePaint(picture, pTransform);
writeReservedCount(cnt);
}
delete(it);
return SERIAL_DONE(cnt);
}
}
delete(it);
//Case - Bitmap Image: