Skip to content

Commit bf299b0

Browse files
Fix returned range
1 parent 45799dc commit bf299b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

calc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,8 @@ func pickColumnInTableRef(tblRef tableRef, colName string) (string, error) {
15361536
return "", err
15371537
}
15381538

1539-
return coordinatesToRangeRef([]int{coords[0] + offset, coords[1], coords[2], coords[3]})
1539+
col := coords[0] + offset
1540+
return coordinatesToRangeRef([]int{col, coords[1], col, coords[3]})
15401541
}
15411542

15421543
func tryParseAsTableRef(ref string, tableRefs *sync.Map) (string, error) {

0 commit comments

Comments
 (0)