Sfoglia il codice sorgente

Handle case where there are rows with no cells.

Geoffrey J. Teale 11 anni fa
parent
commit
b76800f845
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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
 }