Skip to content

Commit 2dcfb60

Browse files
authored
This closes #2240, fix GetCellValue returning shared string index for empty strings (#2252)
- Fix a v2.10.0 regression bug introduced by commit a33bd1a
1 parent f5f68f8 commit 2dcfb60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func (f *File) getFromStringItem(index int) string {
355355
return strconv.Itoa(index)
356356
}
357357
offsetRange := f.sharedStringItem[index]
358-
if len(offsetRange) != 2 || offsetRange[0] >= offsetRange[1] {
358+
if len(offsetRange) != 2 || offsetRange[0] > offsetRange[1] {
359359
return strconv.Itoa(index)
360360
}
361361
buf := make([]byte, offsetRange[1]-offsetRange[0])

0 commit comments

Comments
 (0)