Skip to content

Commit

Permalink
refactor(store): write actual share size to ods (#3863)
Browse files Browse the repository at this point in the history
  • Loading branch information
walldiss authored Oct 21, 2024
1 parent 1d88d7c commit 7d53e66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store/file/ods.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ func CreateODS(
return fmt.Errorf("creating ODS file: %w", err)
}

shareSize := len(eds.GetCell(0, 0))
hdr := &headerV0{
fileVersion: fileV0,
shareSize: share.Size,
shareSize: uint16(shareSize),
squareSize: uint16(eds.Width()),
datahash: roots.Hash(),
}
Expand Down

0 comments on commit 7d53e66

Please sign in to comment.