summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/axlsx/workbook/worksheet/data_bar.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/data_bar.rb b/lib/axlsx/workbook/worksheet/data_bar.rb
index ad636248..e67f76a4 100644
--- a/lib/axlsx/workbook/worksheet/data_bar.rb
+++ b/lib/axlsx/workbook/worksheet/data_bar.rb
@@ -118,7 +118,7 @@ module Axlsx
private
def initialize_cfvos(cfvos)
- self.class.default_cfvos.map.with_index do |default, index|
+ self.class.default_cfvos.each_with_index.map do |default, index|
if index < cfvos.size
value_objects << Cfvo.new(default.merge(cfvos[index]))
else