diff options
| author | Randy Morgan <[email protected]> | 2012-05-21 22:51:38 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-05-21 22:51:38 +0900 |
| commit | 64c043b1e2ab3631d3942047d528bd88a59f4ba7 (patch) | |
| tree | 7ad134d37d5200a7568c6c4ff58a0f1b63c08dbe | |
| parent | 5b9853a28f064ad827e5c8c65e7da023d559334e (diff) | |
| download | caxlsx-64c043b1e2ab3631d3942047d528bd88a59f4ba7.tar.gz caxlsx-64c043b1e2ab3631d3942047d528bd88a59f4ba7.zip | |
patch for 1.8.7 lack of proper ord()
| -rw-r--r-- | lib/axlsx/workbook/worksheet/sheet_protection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/sheet_protection.rb b/lib/axlsx/workbook/worksheet/sheet_protection.rb index a11ba49d..187d2165 100644 --- a/lib/axlsx/workbook/worksheet/sheet_protection.rb +++ b/lib/axlsx/workbook/worksheet/sheet_protection.rb @@ -184,7 +184,7 @@ module Axlsx chars.collect! do |char| i += 1 - char = char.ord << i + char = char.unpack('c')[0] << i #ord << i low_15 = char & 0x7fff high_15 = char & 0x7fff << 15 high_15 = high_15 >> 15 |
