diff options
author | Serge Krot <Serge.Krot@cib.de> | 2020-01-17 09:34:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-17 13:46:31 +0100 |
commit | c5747c64d3134ec6d8b6ab6fdc938639157fca09 (patch) | |
tree | 3f55fb2adaa42e7475f18e5a92addb67951e3be6 /sw | |
parent | ec94926665ef70fdd2c0901e104b43f8bea8b888 (diff) |
tdf#129924 critical fix: use SvxColorItem instead of SvxBrushItem
Change-Id: I09b1e9fe53315974864c8d6947c7cb861f069a68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86953
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8atr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index 813ace50c4fc..8bd8dd43a948 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -258,12 +258,12 @@ void MSWordExportBase::ExportPoolItemsToCHP( ww8::PoolItems &rItems, sal_uInt16 } else if (nWhich == RES_CHRATR_COLOR) { - const SvxBrushItem& rBrushColor = static_cast<const SvxBrushItem&>(*pItem); + const SvxColorItem& rColor = static_cast<const SvxColorItem&>(*pItem); const SfxPoolItem* pBackgroundItem = SearchPoolItems(rItems, RES_CHRATR_BACKGROUND); - if (rBrushColor.GetColor() == COL_AUTO && pBackgroundItem) + if (rColor.GetValue() == COL_AUTO && pBackgroundItem) { const SvxBrushItem& rBrushBackground = static_cast<const SvxBrushItem&>(*pBackgroundItem); - SvxBrushItem aForeground(rBrushBackground.GetColor().IsDark() ? COL_WHITE : COL_BLACK, RES_CHRATR_COLOR); + SvxColorItem aForeground(rBrushBackground.GetColor().IsDark() ? COL_WHITE : COL_BLACK, RES_CHRATR_COLOR); AttrOutput().OutputItem(aForeground); } else |