projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06bf3a1
)
tvg_saver: fix the argument of the sizeof call
author
Mira Grudzinska
<m.grudzinska@samsung.com>
Tue, 12 Oct 2021 19:00:19 +0000
(21:00 +0200)
committer
JunsuChoi
<jsuya.choi@samsung.com>
Fri, 15 Oct 2021 00:42:27 +0000
(09:42 +0900)
We got the size of a pointer instead of the size of a whole table.
Fixed now
src/savers/tvg/tvgTvgSaver.cpp
patch
|
blob
|
history
diff --git
a/src/savers/tvg/tvgTvgSaver.cpp
b/src/savers/tvg/tvgTvgSaver.cpp
index
b133aab
..
3866d6c
100644
(file)
--- 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) {