Skip to content

[BUG] Row.actualCellCount and Row.cellCount values are reversed if empty column present #1472

@kiba-d

Description

@kiba-d

🐛 Bug Report

Row.actualCellCount and Row.cellCount are reversed if empty column present
Input:
A|B|C
1| |1

Lib version: 4.1.1

Steps To Reproduce

  const workbook = new Excel.Workbook()
  await workbook.xlsx.load(input)
  workbook.eachSheet(sheet => {
     const row = sheet.getRow(2)
     console.log(`columnCount ${sheet.columnCount}`) //columnCount 3
     console.log(`actualCellCount ${row.actualCellCount}`) //actualCellCount 2
     console.log(`cellCount ${row.cellCount}`) //cellCount 3
  })

The expected behaviour:

actualCellCount must return actual cells count including empty cells, i.e. 3 in described above example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions