SvgLoader/Parser: Fix typo 84/238184/1
authorJunsuChoi <jsuya.choi@samsung.com>
Thu, 9 Jul 2020 07:36:30 +0000 (16:36 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 9 Jul 2020 07:36:30 +0000 (16:36 +0900)
Change-Id: Iced0f2196c52f7cc729d6f648f5df6affbda3357

src/loaders/svg_loader/tvgSvgLoader.cpp

index f4ed3be..1ac2fd4 100644 (file)
@@ -623,13 +623,13 @@ static Matrix* _parseTransformationMatrix(const char* value)
                 tmp = { c, -s, 0, s, c, 0, 0, 0, 1 };
                 _matrixCompose(matrix, &tmp, matrix);
             } else if (ptCount == 3) {
-                tmp = { 1, 0, points[0], 0, 1, points[1], 0, 0, 1 };
+                tmp = { 1, 0, points[1], 0, 1, points[2], 0, 0, 1 };
                 _matrixCompose(matrix, &tmp, matrix);
 
                 tmp = { c, -s, 0, s, c, 0, 0, 0, 1 };
                 _matrixCompose(matrix, &tmp, matrix);
 
-                tmp = { 1, 0, points[0], 0, 1, points[1], 0, 0, 1 };
+                tmp = { 1, 0, -points[1], 0, 1, -points[2], 0, 0, 1 };
                 _matrixCompose(matrix, &tmp, matrix);
             } else {
                 goto error;