Skip to content

XLSX tiled paste drops the dynamic-array flag after the first copy #35

Open

Description

@mkroemer

Reproduction

On v0.17.0 (main at 5d0a782), use an empty worksheet:

  1. Enter =SEQUENCE(3) in J2. It spills down through J4.
  2. Copy only the formula cell J2.
  3. Select L2:M2 and paste, with L3:M4 empty.

Expected: Both copies spill vertically, showing 1, 2, and 3 in L2:L4 and M2:M4.

Actual: L2 spills correctly. M2 shows only 1 and does not fill M3:M4.

Cause

When the viewer repeats the copied block, it translates the formula for later tiles and rebuilds the ClipCell tuple with four fields. The fifth field, dynamic, is lost. The first tile reuses the original tuple and keeps the flag. The fill-handle path constructs a similar tuple and should also be checked.

Preserve the flag when translating formulas in repeated tiles. Regression coverage should verify both spills in the viewer and after saving and reopening the workbook.

This reproduced on upstream main during the v0.17.0 integration review.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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