diff --git a/modules/juce_graphics/geometry/juce_PathStrokeType.cpp b/modules/juce_graphics/geometry/juce_PathStrokeType.cpp index 9f55b03930..f9a7fbc892 100644 --- a/modules/juce_graphics/geometry/juce_PathStrokeType.cpp +++ b/modules/juce_graphics/geometry/juce_PathStrokeType.cpp @@ -680,9 +680,9 @@ void PathStrokeType::createDashedStroke (Path& destPath, const bool isSolid = ((dashNum & 1) == 0); const float dashLen = dashLengths [dashNum++ % numDashLengths]; - jassert (dashLen > 0); // must be a positive increment! + jassert (dashLen >= 0); // must be a positive increment! if (dashLen <= 0) - break; + continue; pos += dashLen;