aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkPathMeasure.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/SkPathMeasure.cpp b/src/core/SkPathMeasure.cpp
index df47af5440..7ce79f2780 100644
--- a/src/core/SkPathMeasure.cpp
+++ b/src/core/SkPathMeasure.cpp
@@ -669,7 +669,7 @@ bool SkPathMeasure::getSegment(SkScalar startD, SkScalar stopD, SkPath* dst,
}
bool SkPathMeasure::isClosed() {
- (void)this->getLength();
+ (void)this->getLength(); // make sure we measure the current contour
return fIsClosed;
}
@@ -677,7 +677,8 @@ bool SkPathMeasure::isClosed() {
we're done with the path.
*/
bool SkPathMeasure::nextContour() {
- fLength = -1;
+ (void)this->getLength(); // make sure we measure the current contour
+ fLength = -1; // now signal that we should build the next set of segments
return this->getLength() > 0;
}