Opened 3 years ago
Closed 3 years ago
#1219 closed defect (fixed)
Returning selections from Auto4 scripts are shifted by one
| Reported by: | nielsm | Owned by: | nielsm |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1.9 |
| Component: | Scripting | Version: | 2.1.8 |
| Severity: | minor | Keywords: | |
| Cc: | Platform: | All | |
| Sub Component: |
Description
Tested on both trunk and 2.1.8.
If you return the selections array sent to an Auto4 Lua script verbatim, the selection gets shifted down by one.
Probably related to array indices in C++ being zero-based and Lua being one-based.
Change History (2)
comment:1 Changed 3 years ago by nielsm
comment:2 Changed 3 years ago by nielsm
- Owner set to nielsm
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

(In [816b12c]) Fix selection indexes returned from Auto4 Lua macros to be zero-based instead of one-based. Updates #1219.