From d6dd8db1910b80a9f67aa8662b792244117f099a Mon Sep 17 00:00:00 2001 From: subhransu mohanty Date: Tue, 11 Dec 2018 18:39:14 +0900 Subject: [PATCH] lottie/vector: Fixed vpath::clone() implementation. Change-Id: I1c4a4f465508dcaa6831b3d42ca161260e3b6cef --- src/vector/vpath.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vector/vpath.h b/src/vector/vpath.h index be89db6..76e8df2 100644 --- a/src/vector/vpath.h +++ b/src/vector/vpath.h @@ -246,7 +246,8 @@ inline const std::vector &VPath::points() const inline void VPath::clone(const VPath &srcPath) { - d.write() = srcPath.d.read(); + reset(); + addPath(srcPath); } V_END_NAMESPACE -- 2.34.1