From 979523372fb05a7c3da574759a13e82a491bf94f Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Tue, 4 Dec 2012 09:53:38 +0900 Subject: Moved defined names in workbook to be serialized before pivot tables This fixes https://github.com/randym/axlsx/issues/150 --- lib/axlsx/workbook/workbook.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/axlsx/workbook/workbook.rb') diff --git a/lib/axlsx/workbook/workbook.rb b/lib/axlsx/workbook/workbook.rb index c1d304a4..54dd9df1 100644 --- a/lib/axlsx/workbook/workbook.rb +++ b/lib/axlsx/workbook/workbook.rb @@ -313,6 +313,7 @@ require 'axlsx/workbook/worksheet/selection.rb' end end str << '' + defined_names.to_xml_string(str) unless pivot_tables.empty? str << '' pivot_tables.each_with_index do |pivot_table, index| @@ -321,7 +322,6 @@ require 'axlsx/workbook/worksheet/selection.rb' end str << '' end - defined_names.to_xml_string(str) str << '' end -- cgit v1.2.3