Skip to content

Commit

Permalink
fix format.read for biff5 vers
Browse files Browse the repository at this point in the history
  • Loading branch information
shakinm committed Apr 6, 2020
1 parent 1574c4b commit 013c15c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xls/record/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ func (r *Format) Read(stream []byte, vers []byte) {
} else {
copy(r.ifmt[:], stream[:2])
copy(r.cch[:], stream[2:4])
copy(r.grbit[:], stream[4:4])
r.rgb = make([]byte, helpers.BytesToUint16(r.cch[:]))
copy(r.rgb[:], stream[5:])
copy(r.rgb[:], stream[4:])
}

}
Expand Down

0 comments on commit 013c15c

Please # to comment.