common picture: fix crash at picture duplication.
authorHermet Park <hermetpark@gmail.com>
Fri, 19 Mar 2021 10:41:18 +0000 (19:41 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 22 Mar 2021 01:28:44 +0000 (10:28 +0900)
commit314d381801eadf1f7f14aa4386a18a47635439f8
tree91282ddecd97d21a52fff1e80968732f734c932b
parent34116f1eec8c8a8d29e6cc68497d26bef454621e
common picture: fix crash at picture duplication.

A duplicated picture needs to access internal picture loader data
to get its properties while rasterizing.

But it missed the loader since it's not copied from origin.

Thus, we fix this by sharing the internal loader among the duplications and origin.

@Examples: Duplicate
src/examples/Duplicate.cpp
src/examples/PixelImage.cpp
src/lib/tvgLoaderMgr.cpp
src/lib/tvgLoaderMgr.h
src/lib/tvgPictureImpl.h