summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cell.go b/cell.go
index 35060ab..9af93f6 100644
--- a/cell.go
+++ b/cell.go
@@ -450,6 +450,9 @@ func (f *File) SetCellDefault(sheet, axis, value string) error {
// setCellDefault prepares cell type and string type cell value by a given
// string.
func setCellDefault(value string) (t string, v string) {
+ if ok, _ := isNumeric(value); !ok {
+ t = "str"
+ }
v = value
return
}