Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit ebacdd1

Browse files
Merge pull request livecode#7240 from bwmilby/bwm-bugfix-22509
[Bug 22509] Tree View Widget crash
2 parents 8034da2 + 1faeb8d commit ebacdd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [22509] Ensure null `mEllipsisLength` does not cause widget to crash

extensions/widgets/treeview/treeview.lcb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,6 +1542,7 @@ end handler
15421542
-- This happens when the separator is moved, font/icon sizes change,
15431543
-- and when the ReadOnly property changes.
15441544
private handler updateSeparator() returns nothing
1545+
ensureEllipsis()
15451546
if mReadOnly then
15461547
put 2 * kItemPadding + mIconWidth into mRightIconMargin
15471548
else
@@ -2632,8 +2633,6 @@ end handler
26322633
-- the portion of the string that can fit, and sets rTrimmed if the string was trimmed.
26332634
-- There should always be space for an ellipsis after a key when there is a value.
26342635
private handler displayWidth(in pText as String, in pSpace as Real, out rText as String, out rTrimmed as Boolean) returns Real
2635-
ensureEllipsis()
2636-
26372636
variable tCount as Number
26382637
variable tCurrentString as String
26392638
variable tChar as String

0 commit comments

Comments
 (0)