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 --- errors.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'errors.go') diff --git a/errors.go b/errors.go index 6a23a2e..f486ad4 100644 --- a/errors.go +++ b/errors.go @@ -93,6 +93,12 @@ func newStreamSetRowError(row int) error { return fmt.Errorf("row %d has already been written", row) } +// newViewIdxError defined the error message on receiving a invalid sheet view +// index. +func newViewIdxError(viewIndex int) error { + return fmt.Errorf("view index %d out of range", viewIndex) +} + var ( // ErrStreamSetColWidth defined the error message on set column width in // stream writing mode. -- cgit v1.2.1