Skip to content

Commit

Permalink
Read the correct sheet rows when there are more than 9 rows
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeigarts committed Mar 26, 2015
1 parent 94aaaab commit 97ffe1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/saxlsx/file_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ def styles
end

def sheet(i)
f = @zip.glob('xl/worksheets/sheet*.xml').sort[i]
@zip.read(f)
@zip.read("xl/worksheets/sheet#{i+1}.xml")
end

end
Expand Down

0 comments on commit 97ffe1a

Please sign in to comment.