From 8263d70adb7fb8a4231383893a05728d027ae969 Mon Sep 17 00:00:00 2001 From: hogliux Date: Wed, 5 Oct 2016 18:31:29 +0100 Subject: [PATCH] Continue drawing if a negative dashLen was hit --- modules/juce_graphics/geometry/juce_PathStrokeType.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;