diff --git a/src/shapes/paint/dash_path.cpp b/src/shapes/paint/dash_path.cpp index ffe744464..5332bd970 100644 --- a/src/shapes/paint/dash_path.cpp +++ b/src/shapes/paint/dash_path.cpp @@ -71,6 +71,11 @@ ShapePaintPath* PathDasher::applyDash(const RawPath* source, { const Dash* dash = dashes[dashIndex++ % dashes.size()]; float dashLength = dash->normalizedLength(contour->length()); + if (dashLength <= 0.0f) + { + dashIndex++; + continue; + } if (dashLength > contour->length()) { dashLength = contour->length(); @@ -172,4 +177,4 @@ void DashPath::invalidateDash() stroke->parent()->addDirt(ComponentDirt::Paint); stroke->invalidateRendering(); } -} \ No newline at end of file +}