diff options
| author | Randy Morgan <[email protected]> | 2012-08-12 22:53:13 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-08-12 22:53:13 +0900 |
| commit | 62ff31c460b22c27213f9555065ff4ce76cc8a63 (patch) | |
| tree | 58d78962c48b662fb28df4859c3f64ab5318b906 /examples/skydrive | |
| parent | 32eb809ac8e3b401e2cc2567d99779536a21eb22 (diff) | |
| download | caxlsx-62ff31c460b22c27213f9555065ff4ce76cc8a63.tar.gz caxlsx-62ff31c460b22c27213f9555065ff4ce76cc8a63.zip | |
fix error in font_size calculation when using user specified styles that do not define sz and update read_example.rb
Diffstat (limited to 'examples/skydrive')
| -rw-r--r-- | examples/skydrive/real_example.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/skydrive/real_example.rb b/examples/skydrive/real_example.rb index 0274ebe9..ab74fa7f 100644 --- a/examples/skydrive/real_example.rb +++ b/examples/skydrive/real_example.rb @@ -1,4 +1,4 @@ -$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" +$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../lib" require 'axlsx' @@ -54,7 +54,7 @@ Axlsx::Package.new do |p| chart.start_at 7, 16 chart.end_at 12, 31 end - sheet.merged_cells.concat ["B4:C4","E4:F4","B11:C11","E11:F11","B2:F2"] + %w(B4:C4 E4:F4 B11:C11 E11:F11 B2:F2).each { |range| sheet.merge_cells(range) } sheet.column_widths 2, nil, nil, 2, nil, nil, 2 end end |
