| @@ -85740,6 +85740,8 @@ bool PathFlatteningIterator::next() throw() | |||||
| } | } | ||||
| else | else | ||||
| { | { | ||||
| jassert (type == Path::moveMarker); | |||||
| subPathIndex = -1; | subPathIndex = -1; | ||||
| subPathCloseX = x1 = x2; | subPathCloseX = x1 = x2; | ||||
| subPathCloseY = y1 = y2; | subPathCloseY = y1 = y2; | ||||
| @@ -39562,7 +39562,9 @@ public: | |||||
| int subPathIndex; | int subPathIndex; | ||||
| /** Returns true if the current segment is the last in the current sub-path. */ | /** Returns true if the current segment is the last in the current sub-path. */ | ||||
| bool isLastInSubpath() const throw() { return stackPos == stackBase; } | |||||
| bool isLastInSubpath() const throw() { return stackPos == stackBase | |||||
| && (index >= path.numElements | |||||
| || points [index] == Path::moveMarker); } | |||||
| juce_UseDebuggingNewOperator | juce_UseDebuggingNewOperator | ||||
| @@ -286,6 +286,8 @@ bool PathFlatteningIterator::next() throw() | |||||
| } | } | ||||
| else | else | ||||
| { | { | ||||
| jassert (type == Path::moveMarker); | |||||
| subPathIndex = -1; | subPathIndex = -1; | ||||
| subPathCloseX = x1 = x2; | subPathCloseX = x1 = x2; | ||||
| subPathCloseY = y1 = y2; | subPathCloseY = y1 = y2; | ||||
| @@ -101,7 +101,9 @@ public: | |||||
| int subPathIndex; | int subPathIndex; | ||||
| /** Returns true if the current segment is the last in the current sub-path. */ | /** Returns true if the current segment is the last in the current sub-path. */ | ||||
| bool isLastInSubpath() const throw() { return stackPos == stackBase; } | |||||
| bool isLastInSubpath() const throw() { return stackPos == stackBase | |||||
| && (index >= path.numElements | |||||
| || points [index] == Path::moveMarker); } | |||||
| //============================================================================== | //============================================================================== | ||||