From 581451ea8d593edecfd7d62a705d46110f11ac06 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Thu, 9 Jul 2020 15:40:21 +0900 Subject: [PATCH] SvgLoader: Fix typo (SCubic draw) Change-Id: Id54cf6a7ca66cdbc96cfb93143aacccab95de822 --- src/loaders/svg_loader/tvgSvgPath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/loaders/svg_loader/tvgSvgPath.cpp b/src/loaders/svg_loader/tvgSvgPath.cpp index ba01ae7..bd43027 100644 --- a/src/loaders/svg_loader/tvgSvgPath.cpp +++ b/src/loaders/svg_loader/tvgSvgPath.cpp @@ -328,9 +328,9 @@ static void _processCommand(vector* cmds, vector* pts, char case 's': case 'S': { Point p[3], ctrl; - if ((cmds->size() > 1) && (cmds->at(cmds->size() - 2) == PathCommand::CubicTo)) { + if ((cmds->size() > 1) && (cmds->at(cmds->size() - 1) == PathCommand::CubicTo)) { ctrl.x = 2 * cur->x - curCtl->x; - ctrl.y = 2 * cur->x - curCtl->y; + ctrl.y = 2 * cur->y - curCtl->y; } else { ctrl = *cur; } -- 2.7.4