lottie/vector: Fixed vpath::clone() implementation. 82/195182/2
authorsubhransu mohanty <sub.mohanty@samsung.com>
Tue, 11 Dec 2018 09:39:14 +0000 (18:39 +0900)
committerHermet Park <chuneon.park@samsung.com>
Wed, 12 Dec 2018 02:03:02 +0000 (02:03 +0000)
Change-Id: I1c4a4f465508dcaa6831b3d42ca161260e3b6cef

src/vector/vpath.h

index be89db6..76e8df2 100644 (file)
@@ -246,7 +246,8 @@ inline const std::vector<VPointF> &VPath::points() const
 
 inline void VPath::clone(const VPath &srcPath)
 {
-   d.write() = srcPath.d.read();
+   reset();
+   addPath(srcPath);
 }
 
 V_END_NAMESPACE