Skip to content

Commit bb6ba05

Browse files
committed
don't set list-box% content when set-string given column > 0
- calling set-string with a column argument other than 0 overwrites content, which doesn't appear to store any data other than the string to display in column 0. this breaks future calls to get-string.
1 parent fda5f7e commit bb6ba05

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

gui-lib/mred/private/mritem.rkt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,8 @@
903903
(sub1 num-columns)
904904
#f)))
905905
(check-item 'set-string n)
906-
(send this -set-list-string n d)
906+
(when (= col 0)
907+
(send this -set-list-string n d))
907908
(send wx set-string n d col)))]
908909
[set-data (entry-point (lambda (n d) (check-item 'set-data n) (send wx set-data n d)))]
909910
[get-first-visible-item (entry-point (lambda () (send wx get-first-item)))]

0 commit comments

Comments
 (0)