mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +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);
|
if (pTransform) transform = _multiply(pTransform, &transform);
|
||||||
|
|
||||||
//fill rule
|
//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);
|
cnt = writeTagProperty(TVG_TAG_SHAPE_FILLRULE, SIZE(TvgBinFlag), &flag);
|
||||||
|
}
|
||||||
|
|
||||||
bool preTransform = true;
|
bool preTransform = true;
|
||||||
|
|
||||||
|
@ -602,10 +602,10 @@ TvgBinCounter TvgSaver::serializePicture(const Picture* picture, const Matrix* p
|
||||||
reserveCount();
|
reserveCount();
|
||||||
auto cnt = serializeChildren(it, &transform, true) + serializePaint(picture, pTransform);
|
auto cnt = serializeChildren(it, &transform, true) + serializePaint(picture, pTransform);
|
||||||
writeReservedCount(cnt);
|
writeReservedCount(cnt);
|
||||||
}
|
|
||||||
delete(it);
|
delete(it);
|
||||||
return SERIAL_DONE(cnt);
|
return SERIAL_DONE(cnt);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
delete(it);
|
delete(it);
|
||||||
|
|
||||||
//Case - Bitmap Image:
|
//Case - Bitmap Image:
|
||||||
|
|
Loading…
Add table
Reference in a new issue