mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Draw custom line ends if arrow width is zero
This commit is contained in:
parent
300485a147
commit
3461b12f7e
1 changed files with 2 additions and 2 deletions
|
|
@ -449,7 +449,7 @@ namespace PathStrokeHelpers
|
|||
{
|
||||
destPath.startNewSubPath (firstLine.rx2, firstLine.ry2);
|
||||
|
||||
if (arrowhead != nullptr)
|
||||
if (arrowhead != nullptr && arrowhead->startWidth > 0.0f)
|
||||
addArrowhead (destPath, firstLine.rx2, firstLine.ry2, lastX1, lastY1, firstLine.x1, firstLine.y1,
|
||||
width, arrowhead->startWidth);
|
||||
else
|
||||
|
|
@ -491,7 +491,7 @@ namespace PathStrokeHelpers
|
|||
{
|
||||
destPath.lineTo (lastX2, lastY2);
|
||||
|
||||
if (arrowhead != nullptr)
|
||||
if (arrowhead != nullptr && arrowhead->endWidth > 0.0f)
|
||||
addArrowhead (destPath, lastX2, lastY2, lastLine.rx1, lastLine.ry1, lastLine.x2, lastLine.y2,
|
||||
width, arrowhead->endWidth);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue