diff options
author | fvogel <fvogelnew1@free.fr> | 2024-06-27 06:05:14 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-06-27 06:05:14 (GMT) |
commit | 72d3efa9db1388bc4db29755b1d1befe33b457a0 (patch) | |
tree | 70fdc1d9e4537f0e5b6d157c2033eae689a27f5a | |
parent | b587946d61fca095d89334a5a128ae4f380ca435 (diff) | |
download | tk-72d3efa9db1388bc4db29755b1d1befe33b457a0.zip tk-72d3efa9db1388bc4db29755b1d1befe33b457a0.tar.gz tk-72d3efa9db1388bc4db29755b1d1befe33b457a0.tar.bz2 |
Fix [51ece3786f]: crash with dchars on line with arrows.
-rw-r--r-- | generic/tkCanvLine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c index a001677..408ef7c 100644 --- a/generic/tkCanvLine.c +++ b/generic/tkCanvLine.c @@ -700,10 +700,10 @@ ComputeLineBbox( width = 1.0; } if (linePtr->arrow != ARROWS_NONE) { - if (linePtr->arrow != ARROWS_LAST) { + if (linePtr->arrow != ARROWS_LAST && linePtr->firstArrowPtr) { TkIncludePoint((Tk_Item *) linePtr, linePtr->firstArrowPtr); } - if (linePtr->arrow != ARROWS_FIRST) { + if (linePtr->arrow != ARROWS_FIRST && linePtr->lastArrowPtr) { TkIncludePoint((Tk_Item *) linePtr, linePtr->lastArrowPtr); } } |