Browse Source

Handle case where there are rows with no cells.

Geoffrey J. Teale 11 years ago
parent
commit
b76800f845
1 changed files with 2 additions and 0 deletions
  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
 }