root icon indicating copy to clipboard operation
root copied to clipboard

Fix RFieldBase::GetNElements() for record/class fields

Open jblomer opened this issue 1 year ago • 1 comments

Check duplicate issues.

  • [x] Checked for duplicates

Description

For all but record and class fields, the number of elements of that field is given by the number of elements of the principle columns. Records/classes don't have columns of their own. The information must be retrieved from one of the subfields.

Reproducer

The problem arises, e.g., when trying to iterate over the field range of a view of a record item of a collection.

ROOT version

master

Installation method

n/a

Operating system

n/a

Additional context

No response

jblomer avatar Oct 03 '24 08:10 jblomer

In addition, enum fields and atomic files have no attched columns.

jblomer avatar Oct 06 '24 21:10 jblomer