lib/axlsx.rb in axlsx-1.1.1 vs lib/axlsx.rb in axlsx-1.1.2
- old
+ new
@@ -69,10 +69,10 @@
# @return [String]
def self.col_ref(index)
chars = []
while index >= 26 do
chars << ((index % 26) + 65).chr
- index = index / 26 - 1
+ index = (index / 26).to_i - 1
end
chars << (index + 65).chr
chars.reverse.join
end