Dyalog / ewc-client

Other
1 stars 4 forks source link

SelItems returns all zeroes #123

Closed mkromberg closed 8 months ago

mkromberg commented 9 months ago

Run DemoEdit. SelItems is set to [0,0,1,0] to select multiplication:

{"WC":{"ID":"F1.Function","Properties":{"Event":[["Select",""]],"Items":["+","-","×","÷"],"Posn":[210,120],"SelItems":[0,0,1,0],"Size":[23,100],"Text":"×","Type":"Combo"}}}

Press Calc, notice: {"WG":{"ID":"F1.Function","Properties":["SelItems"],"WGID":"4"}} 26:58.917 R: #4: {"WG":{"ID":"F1.Function","Properties":{"SelItems":[0,0,0,0]},"WGID":"4"}}

After that the APL code crashes because it assumes that one item must be selected.