Permalink
Browse files

Fixed an error condition created by the new parsing when the row had …

…no ht attribute. Removed a puts statement inserted from the last patch
  • Loading branch information...
1 parent 97ecd69 commit f824a62e574db13bac9eafcfc17d6e00a3f9e7a5 Robert Brazier committed Jan 15, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rubyXL/parser.rb
View
@@ -20,7 +20,6 @@ def Parser.convert_to_index(cell_string)
col = 0
i = 0
if @@parsed_column_hash[one].nil?
- puts "||#{one}||"
two = one.reverse #because of 26^i calculation
two.each_byte do |c|
int_val = c - 64 #converts A to 1
@@ -227,7 +226,7 @@ def Parser.fill_worksheet(wb,i,files,shared_strings)
wb.worksheets[i].row_styles[row_attributes['r'].content] = { :style => row_style }
- unless row_attributes['ht'].content == ""
+ if !row_attributes['ht'].nil? && !row_attributes['ht'].content.blank?
wb.worksheets[i].change_row_height(Integer(row_attributes['r'].content)-1,
Float(row_attributes['ht'].content))
end

0 comments on commit f824a62

Please sign in to comment.