Explorar el Código

Merge pull request #47 from bronze1man/pr-sheet-order

fix a bug with incorrectly File.Sheets order
Geoffrey J. Teale hace 11 años
padre
commit
e53cf604af
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib.go

+ 1 - 1
lib.go

@@ -456,7 +456,7 @@ func readSheetsFromZipFile(f *zip.File, file *File, sheetXMLMap map[string]strin
 			return nil, nil, sheet.Error
 		}
 		sheetsByName[workbook.Sheets.Sheet[sheet.Index].Name] = sheet.Sheet
-		sheets[j] = sheet.Sheet
+		sheets[sheet.Index] = sheet.Sheet
 	}
 	return sheetsByName, sheets, nil
 }