diff options
Diffstat (limited to 'src/pathops/SkOpSegment.cpp')
-rw-r--r-- | src/pathops/SkOpSegment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathops/SkOpSegment.cpp b/src/pathops/SkOpSegment.cpp index 6a62175032..484ddca412 100644 --- a/src/pathops/SkOpSegment.cpp +++ b/src/pathops/SkOpSegment.cpp @@ -258,9 +258,9 @@ bool SkOpSegment::addExpanded(double newT, const SkOpSpanBase* test, bool* start return false; } newPtT->fPt = this->ptAtT(newT); - // const cast away to change linked list; pt/t values stays unchanged SkOpPtT* oppPrev = test->ptT()->oppPrev(newPtT); if (oppPrev) { + // const cast away to change linked list; pt/t values stays unchanged SkOpSpanBase* writableTest = const_cast<SkOpSpanBase*>(test); writableTest->mergeMatches(newPtT->span()); writableTest->ptT()->addOpp(newPtT, oppPrev); |