Permalink
Browse files

Merge branch 'worksheet_protection' into zd-worksheet-protection

  • Loading branch information...
2 parents e87002b + 4574ebc commit a2bb0950ac7120bd739fa592569d85b80ec93fbf @timon timon committed May 6, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/spreadsheet/excel/reader.rb
@@ -1067,8 +1067,10 @@ def read_xf work, pos, len
end
def read_sheet_protection worksheet, op, data
case op
- when :protect: worksheet.protect! if data.unpack('v').first == 1
- when :password: worksheet.password_hash = data.unpack('v').first
+ when :protect
+ worksheet.protect! if data.unpack('v').first == 1
+ when :password
+ worksheet.password_hash = data.unpack('v').first
end
end
def set_cell worksheet, row, column, xf, value=nil

0 comments on commit a2bb095

Please sign in to comment.