From a524d5ea2259a9ee71906478d4924088303e4455 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 17 Jul 2013 21:39:54 +0000 Subject: [PATCH] Avoid lineTo() duplication in SkPath::dump(). Currently, SkPath.dump() produces duplicate entries for lineTo(): path.moveTo(0, 0); path.lineTo(1.00000012f, 0); path.lineTo(1.00000012f, 0); path.lineTo(1.00000012f, 1.00000012f); path.lineTo(1.00000012f, 1.00000012f); path.lineTo(0, 1.00000012f); path.lineTo(0, 1.00000012f); path.lineTo(0, 0); path.lineTo(0, 0); path.close(); R=bungeman@google.com Author: fmalita@chromium.org Review URL: https://chromiumcodereview.appspot.com/19540004 git-svn-id: http://skia.googlecode.com/svn/trunk@10131 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkPath.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 4ff6287..b285184 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp @@ -2178,7 +2178,6 @@ void SkPath::dump(bool forceClose, const char title[]) const { break; case kLine_Verb: append_params(&builder, "path.lineTo", &pts[1], 1); - append_params(&builder, "path.lineTo", &pts[1], 1); break; case kQuad_Verb: append_params(&builder, "path.quadTo", &pts[1], 2); -- 2.7.4