Ver código fonte

Handle case where there are rows with no cells.

Geoffrey J. Teale 11 anos atrás
pai
commit
b76800f845
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      lib.go

+ 2 - 0
lib.go

@@ -414,6 +414,8 @@ func calculateMaxMinFromWorksheet(worksheet *xlsxWorksheet) (minx, miny, maxx, m
 			}
 		}
 	}
+	if minx == math.MaxInt64 { minx = 0 }
+	if miny == math.MaxInt64 { miny = 0 }
 	return
 }