From c0dcaa3942a137a5d0a4f338f16e30b9a54ae7b7 Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Tue, 12 Oct 2021 21:00:19 +0200 Subject: [PATCH] tvg_saver: fix the argument of the sizeof call We got the size of a pointer instead of the size of a whole table. Fixed now --- src/savers/tvg/tvgTvgSaver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/savers/tvg/tvgTvgSaver.cpp b/src/savers/tvg/tvgTvgSaver.cpp index b133aab..3866d6c 100644 --- a/src/savers/tvg/tvgTvgSaver.cpp +++ b/src/savers/tvg/tvgTvgSaver.cpp @@ -524,7 +524,7 @@ TvgBinCounter TvgSaver::serializePath(const Shape* shape, const Matrix* transfor auto cnt = writeData(&cmdCnt, SIZE(cmdCnt)); cnt += writeData(&ptsCnt, SIZE(ptsCnt)); - cnt += writeData(outCmds, SIZE(outCmds)); + cnt += writeData(outCmds, SIZE(TvgBinFlag) * cmdCnt); //transform? if (preTransform) { -- 2.7.4