diff options
| author | Jan-Hendrik Hühne <[email protected]> | 2012-06-06 17:18:55 +0200 |
|---|---|---|
| committer | Jan-Hendrik Hühne <[email protected]> | 2012-06-06 17:18:55 +0200 |
| commit | 264c9e55e0b72db341f85588d9ed1481a7cf8888 (patch) | |
| tree | c76d4bd44df4c29843ac43073eb0ce8273b833e4 /lib/axlsx/workbook/worksheet/pane.rb | |
| parent | 4e9cab4bc167f1a5c080c616b84860bdf5ebbb6f (diff) | |
| download | caxlsx-264c9e55e0b72db341f85588d9ed1481a7cf8888.tar.gz caxlsx-264c9e55e0b72db341f85588d9ed1481a7cf8888.zip | |
Changes default value of xSplit and ySplit.
Diffstat (limited to 'lib/axlsx/workbook/worksheet/pane.rb')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/pane.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/axlsx/workbook/worksheet/pane.rb b/lib/axlsx/workbook/worksheet/pane.rb index 2a5b4075..bf632c10 100644 --- a/lib/axlsx/workbook/worksheet/pane.rb +++ b/lib/axlsx/workbook/worksheet/pane.rb @@ -68,7 +68,7 @@ module Axlsx # of columns visible in the top pane. # @see type # @return [Integer] - # @default nil + # @default 0 attr_reader :x_split @@ -78,7 +78,7 @@ module Axlsx # of rows visible in the left pane. # @see type # @return [Integer] - # @default nil + # @default 0 attr_reader :y_split @@ -90,7 +90,8 @@ module Axlsx # @option options [Integer] y_split Vertical Split Position def initialize(options={}) #defaults - @active_pane = @state = @top_left_cell = @x_split = @y_split = nil + @active_pane = @state = @top_left_cell = nil + @x_split = @y_split = 0 # write options to instance variables options.each do |o| |
