lib/writeexcel/workbook.rb in writeexcel-1.0.2 vs lib/writeexcel/workbook.rb in writeexcel-1.0.3

- old
+ new

@@ -1771,11 +1771,10 @@ def store_externsheet # :nodoc: record = 0x0017 # Record identifier # Get the external refs - ext = @ext_refs.keys.sort {|a, b| a.split(':')[0].to_i <=> b.split(':')[0].to_i} - + ext = @ext_refs.keys.sort {|a, b| @ext_refs[a].to_i <=> @ext_refs[b].to_i} # Change the external refs from stringified "1:1" to [1, 1] ext.map! {|e| e.split(/:/).map! {|v| v.to_i} } cxti = ext.size # Number of Excel XTI structures