From 013c15c238abd21a56200719b2bceac1b1477c2a Mon Sep 17 00:00:00 2001 From: Mikhail Shakin Date: Mon, 6 Apr 2020 15:56:01 +0700 Subject: [PATCH] fix format.read for biff5 vers --- xls/record/format.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xls/record/format.go b/xls/record/format.go index c36d445..1576262 100644 --- a/xls/record/format.go +++ b/xls/record/format.go @@ -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:]) } }