mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
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:
parent
e381edacb7
commit
f652b33a27
2 changed files with 4 additions and 4 deletions
Binary file not shown.
|
@ -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,9 +602,9 @@ 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);
|
||||
return SERIAL_DONE(cnt);
|
||||
}
|
||||
delete(it);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue