Skip to content

Commit

Permalink
write actual share size to ods file instead of const
Browse files Browse the repository at this point in the history
  • Loading branch information
walldiss committed Oct 18, 2024
1 parent 48feb19 commit 6299ef5
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 6299ef5

Please sign in to comment.