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

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

comment:2 Changed 3 years ago by nielsm

  • Owner set to nielsm
  • Resolution set to fixed
  • Status changed from new to closed

(In [8b9d653]) Merge r4643 from trunk, fixing selections from Auto4 Lua macros. Closes #1219.

Note: See TracTickets for help on using tickets.