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

Commit 5cbdbaf

Browse files
Merge pull request #7504 from bwmilby/bwm-23056-treeview
[Bug 23056] Tree View Widget error when values hidden
2 parents 049fd66 + 9417203 commit 5cbdbaf

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [23056] Prevent error when values hidden and moving over right side of widget

extensions/widgets/treeview/treeview.lcb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ use com.livecode.library.widgetutils
9494
use com.livecode.foreign
9595

9696
metadata author is "LiveCode"
97-
metadata version is "2.4.0"
97+
metadata version is "2.4.1"
9898
metadata title is "Tree View"
9999
metadata svgicon is "M152.4,249.7c-6.4,0-11.8,4.3-13.5,10.1h-10v-26.7h10c1.7,5.8,7.1,10.1,13.5,10.1c7.8,0,14.1-6.3,14.1-14.1s-6.3-14.1-14.1-14.1c-6.4,0-11.8,4.3-13.5,10.1h-10v-16.1c8.4-1.8,14.8-9.3,14.8-18.3c0-10.4-8.4-18.8-18.8-18.8s-18.8,8.4-18.8,18.8c0,9,6.3,16.5,14.7,18.3v58.8h18c1.7,5.8,7.1,10.1,13.5,10.1c7.8,0,14.1-6.3,14.1-14.1S160.2,249.7,152.4,249.7z M128.7,202h-7.5v-7.5h-7.5V187h7.5v-7.5h7.5v7.5h7.5v7.5h-7.5V202z"
100100
metadata _ide is "true"
@@ -1404,11 +1404,13 @@ private handler xPosToIconString(in pXPos as Number, in pRow as Number) returns
14041404
return ""
14051405
end if
14061406

1407-
variable tElement as Array
1408-
put element pRow of mDataList into tElement
1407+
if mShowValues then
1408+
variable tElement as Array
1409+
put element pRow of mDataList into tElement
14091410

1410-
if tElement["leaf"] and tElement["value_too_large"] then
1411-
return "inspect"
1411+
if tElement["leaf"] and tElement["value_too_large"] then
1412+
return "inspect"
1413+
end if
14121414
end if
14131415

14141416
return ""

0 commit comments

Comments
 (0)