From 564ebe48dd660347c7ac5cdebe3395e4a085f19b Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Sun, 8 Apr 2018 10:31:11 +0800 Subject: - Fix `checkCellInArea()` index out of range when merged cell ref is single coordinate, relate issue #206; - go test updated; - Repository icon for SourceTree has been added --- cell.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cell.go') diff --git a/cell.go b/cell.go index 281ab45..c5cd838 100644 --- a/cell.go +++ b/cell.go @@ -532,6 +532,10 @@ func checkCellInArea(cell, area string) bool { area = strings.ToUpper(area) ref := strings.Split(area, ":") + if len(ref) < 2 { + return false + } + from := ref[0] to := ref[1] -- cgit v1.2.1