Problem with control sets

Duplicating a control in a control set increases the index by two! Not what I would expect. Not what I would ever want.

To duplicate the problem:

  1. Place a control such as a textfield in a window.
  2. Give it a name in the inspector. (Probably not required to duplicate the problem.)
  3. Under “Control Set,” select “New Control Set.”
  4. Reselect the window in the navigator.
  5. Click on the control created in step one. Check the inspector. The control has an index of 0.
  6. Duplicate the control using command-D (Mac). The new control has an index of 2!

This is a real pain. I always want consecutive index numbers for controls.

Known issue: <https://xojo.com/issue/26780>