aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkDashPathEffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/SkDashPathEffect.cpp')
-rw-r--r--src/effects/SkDashPathEffect.cpp2
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);
}