[Libreoffice-commits] core.git: sw/source

Serge Krot (via logerrit) logerrit at kemper.freedesktop.org
Fri Jan 17 12:47:07 UTC 2020


 sw/source/filter/ww8/ww8atr.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit c5747c64d3134ec6d8b6ab6fdc938639157fca09
Author:     Serge Krot <Serge.Krot at cib.de>
AuthorDate: Fri Jan 17 09:34:01 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Jan 17 13:46:31 2020 +0100

    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 at redhat.com>

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


More information about the Libreoffice-commits mailing list