diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-04-12 16:50:49 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-12 16:50:49 +0200 |
| commit | ff2e627de69f3c0797eb00c61e06da59d4aebd14 (patch) | |
| tree | 91ffa3a0a20f60db05ee240c52e19b725ce4e1e0 | |
| parent | c5ddbe7cd9bb15e8b247e6b5a5e359d02dd5b9fe (diff) | |
| parent | ce089bb1d6675d5a57f826a97ee86c83b8e94833 (diff) | |
| download | caxlsx-ff2e627de69f3c0797eb00c61e06da59d4aebd14.tar.gz caxlsx-ff2e627de69f3c0797eb00c61e06da59d4aebd14.zip | |
Merge pull request #196 from tagliala/bugfix/195-fix-tab-color-reassignment
Fix tab color assignment
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | lib/axlsx/workbook/worksheet/sheet_pr.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 39002c80..7c7e81a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ CHANGELOG - Fix bug when calling `worksheet.add_border("A1:B2", nil)` - Change `BorderCreator#initialize` arguments handling - Fix `add_border` to work with singluar cell refs + - [PR #196](https://github.com/caxlsx/caxlsx/pull/196) - Fix tab color reassignment - **October.21.22**: 3.3.0 - [PR #168](https://github.com/caxlsx/caxlsx/pull/168) - Merge in the gem [`axlsx_styler`](https://github.com/axlsx-styler-gem/axlsx_styler) diff --git a/lib/axlsx/workbook/worksheet/sheet_pr.rb b/lib/axlsx/workbook/worksheet/sheet_pr.rb index fd6dad2b..72028141 100644 --- a/lib/axlsx/workbook/worksheet/sheet_pr.rb +++ b/lib/axlsx/workbook/worksheet/sheet_pr.rb @@ -71,7 +71,7 @@ module Axlsx # @see tab_color def tab_color=(v) - @tab_color ||= Color.new(:rgb => v) + @tab_color = Color.new(:rgb => v) end private |
