Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'worksheet_protection' into zd-worksheet-protection

  • Loading branch information...
commit a2bb0950ac7120bd739fa592569d85b80ec93fbf 2 parents e87002b + 4574ebc
@timon timon authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/spreadsheet/excel/reader.rb
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.