diff options
author | 2014-05-07 17:35:05 +0000 | |
---|---|---|
committer | 2014-05-07 17:35:05 +0000 | |
commit | eab6c9a9bae5908341cc070704200715eabd4936 (patch) | |
tree | 97c7b2dd6177ac2a3729fccf00b60fa4eb5ef907 | |
parent | 80b1d031ba4d81b686229f304c101471cd26b7a4 (diff) |
Fix Dash Effect readback calc for fPhase from old skps
BUG=skia:
R=reed@google.com, bsalomon@google.com
Author: egdaniel@google.com
Review URL: https://codereview.chromium.org/270223003
git-svn-id: http://skia.googlecode.com/svn/trunk@14620 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/effects/SkDashPathEffect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp index 6f132e0be5..24361bd369 100644 --- a/src/effects/SkDashPathEffect.cpp +++ b/src/effects/SkDashPathEffect.cpp @@ -568,7 +568,7 @@ SkDashPathEffect::SkDashPathEffect(SkReadBuffer& buffer) : INHERITED(buffer) { for (int i = 0; i < fInitialDashIndex; ++i) { fPhase += fIntervals[i]; } - fPhase += fInitialDashLength; + fPhase += fIntervals[fInitialDashIndex] - fInitialDashLength; } else { this->setInternalMembers(fPhase); } |