From eed431e0fc2f61b13e7745857a41cb47d9f7f810 Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 2 May 2022 12:30:18 +0800 Subject: This closes #1219, fixes cell value reading issue, improves performance, and 1904 date system support - Fix incorrect cell data types casting results when number formatting - Support set cell value on 1904 date system enabled, ref #1212 - Improve performance for set sheet row and the merging cells, fix performance impact when resolving #1129 --- rows_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rows_test.go') diff --git a/rows_test.go b/rows_test.go index ae30838..014b2d8 100644 --- a/rows_test.go +++ b/rows_test.go @@ -928,6 +928,11 @@ func TestSetRowStyle(t *testing.T) { cellStyleID, err := f.GetCellStyle("Sheet1", "B2") assert.NoError(t, err) assert.Equal(t, style2, cellStyleID) + // Test cell inheritance rows style + assert.NoError(t, f.SetCellValue("Sheet1", "C1", nil)) + cellStyleID, err = f.GetCellStyle("Sheet1", "C1") + assert.NoError(t, err) + assert.Equal(t, style2, cellStyleID) assert.NoError(t, f.SaveAs(filepath.Join("test", "TestSetRowStyle.xlsx"))) } -- cgit v1.2.1