1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

PathStrokeType: Avoid unnecessarily starting new subpaths

This commit is contained in:
reuk 2025-02-10 11:27:36 +00:00
parent 92c7d73d2d
commit 9bdf69e499
No known key found for this signature in database

View file

@ -713,10 +713,13 @@ void PathStrokeType::createDashedStroke (Path& destPath,
return;
}
if (isSolid && ! first)
newDestPath.lineTo (it.x1, it.y1);
else
newDestPath.startNewSubPath (it.x1, it.y1);
if (isSolid)
{
if (first)
newDestPath.startNewSubPath (it.x1, it.y1);
else
newDestPath.lineTo (it.x1, it.y1);
}
dx = it.x2 - it.x1;
dy = it.y2 - it.y1;