From a410b22bdd50e9f212b0b454e5aed798e3476394 Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 28 Oct 2022 00:31:55 +0800 Subject: Fix the error on getting the range of merged cells on the worksheet which contains one cell merged cell range - Parse workbook default theme for custom theme color support in the feature - Variables name typo fix - Add system foreground and background color as RGB in the IndexedColorMapping list --- styles_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'styles_test.go') diff --git a/styles_test.go b/styles_test.go index f27c9a2..487a6df 100644 --- a/styles_test.go +++ b/styles_test.go @@ -334,8 +334,8 @@ func TestStylesReader(t *testing.T) { func TestThemeReader(t *testing.T) { f := NewFile() // Test read theme with unsupported charset. - f.Pkg.Store("xl/theme/theme1.xml", MacintoshCyrillicCharset) - assert.EqualValues(t, new(xlsxTheme), f.themeReader()) + f.Pkg.Store(defaultXMLPathTheme, MacintoshCyrillicCharset) + assert.EqualValues(t, &xlsxTheme{XMLNSa: NameSpaceDrawingML.Value, XMLNSr: SourceRelationship.Value}, f.themeReader()) } func TestSetCellStyle(t *testing.T) { -- cgit v1.2.1