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:
parent
92c7d73d2d
commit
9bdf69e499
1 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue