This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit c40dafc
committed
[[ Bug 14485 ]] Errors in parsing expressions involving widget.
The MCChunk object is highly dependent on the order of CT_* enum for controls. In particular, CT_FIELD must be the last object type as there is a comparison which depends on it being a text chunk. Therefore CT_FIELD has been moved to after CT_WIDGET and aliased with CT_FIRST_TEXT_CHUNK. Places in the code which were comparing with CT_FIELD to get a control have been updated to CT_LAST_CONTROL, and places which were comparing to CT_FIELD as a text chunk have been updated to use CT_FIRST_TEXT_CHUNK.
In particular, this fixes the issue with parsing chunk lists such as 'widget 1 and button 2' - which was parsing 'widget (1 and button 2)' rather than 'widget (1) and button (2)'.1 parent 15d1e5a commit c40dafc
5 files changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2607 | 2607 | | |
2608 | 2608 | | |
2609 | 2609 | | |
2610 | | - | |
| 2610 | + | |
2611 | 2611 | | |
2612 | 2612 | | |
2613 | 2613 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
1335 | | - | |
1336 | 1335 | | |
1337 | | - | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1338 | 1339 | | |
1339 | 1340 | | |
1340 | 1341 | | |
| |||
0 commit comments