sc/source/filter/excel/xlstyle.cxx |    8 ++++----
 sc/source/filter/inc/xlstyle.hxx   |    4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit ba9780ab214b725122b211b5a9545ba0f8d5b430
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Nov 7 12:55:33 2022 +0000
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Wed Nov 9 13:05:41 2022 +0100

    tdf#151610 chart colors should be the same regardless of the desktop theme
    
    Change-Id: I47ae80f744401bd13452ec8879cb8f420e35b9ce
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142383
    Tested-by: Jenkins
    Reviewed-by: Eike Rathke <er...@redhat.com>
    (cherry picked from commit f8ad054de38a6592b60ab850e938e6e81ec4cc0d)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142310
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/sc/source/filter/excel/xlstyle.cxx 
b/sc/source/filter/excel/xlstyle.cxx
index b5de24df06a4..886a3a657617 100644
--- a/sc/source/filter/excel/xlstyle.cxx
+++ b/sc/source/filter/excel/xlstyle.cxx
@@ -147,12 +147,12 @@ Color XclDefaultPalette::GetDefColor( sal_uInt16 
nXclIndex ) const
     else switch( nXclIndex )
     {
         case EXC_COLOR_WINDOWTEXT3:
-        case EXC_COLOR_WINDOWTEXT:
-        case EXC_COLOR_CHWINDOWTEXT:    nColor = mnWindowText;  break;
+        case EXC_COLOR_WINDOWTEXT:      nColor = mnWindowText;  break;
         case EXC_COLOR_WINDOWBACK3:
-        case EXC_COLOR_WINDOWBACK:
-        case EXC_COLOR_CHWINDOWBACK:    nColor = mnWindowBack;  break;
+        case EXC_COLOR_WINDOWBACK:      nColor = mnWindowBack;  break;
         case EXC_COLOR_BUTTONBACK:      nColor = mnFaceColor;   break;
+        case EXC_COLOR_CHWINDOWTEXT:    nColor = COL_BLACK;     break;
+        case EXC_COLOR_CHWINDOWBACK:    nColor = COL_WHITE;     break;
         case EXC_COLOR_CHBORDERAUTO:    nColor = COL_BLACK;     break;  // 
TODO: really always black?
         case EXC_COLOR_NOTEBACK:        nColor = mnNoteBack;    break;
         case EXC_COLOR_NOTETEXT:        nColor = mnNoteText;    break;
diff --git a/sc/source/filter/inc/xlstyle.hxx b/sc/source/filter/inc/xlstyle.hxx
index 3581f77f0162..69f4f9dabc15 100644
--- a/sc/source/filter/inc/xlstyle.hxx
+++ b/sc/source/filter/inc/xlstyle.hxx
@@ -207,8 +207,8 @@ const sal_uInt16 EXC_COLOR_WINDOWBACK3      = 25;       /// 
System window backgr
 const sal_uInt16 EXC_COLOR_WINDOWTEXT       = 64;       /// System window text 
color (>=BIFF5).
 const sal_uInt16 EXC_COLOR_WINDOWBACK       = 65;       /// System window 
background color (>=BIFF5).
 const sal_uInt16 EXC_COLOR_BUTTONBACK       = 67;       /// System button 
background color (face color).
-const sal_uInt16 EXC_COLOR_CHWINDOWTEXT     = 77;       /// System window text 
color (BIFF8 charts).
-const sal_uInt16 EXC_COLOR_CHWINDOWBACK     = 78;       /// System window 
background color (BIFF8 charts).
+const sal_uInt16 EXC_COLOR_CHWINDOWTEXT     = 77;       /// Chart window text 
color (BIFF8 charts).
+const sal_uInt16 EXC_COLOR_CHWINDOWBACK     = 78;       /// Chart window 
background color (BIFF8 charts).
 const sal_uInt16 EXC_COLOR_CHBORDERAUTO     = 79;       /// Automatic frame 
border for series (BIFF8 charts).
 const sal_uInt16 EXC_COLOR_NOTEBACK         = 80;       /// Note background 
color.
 const sal_uInt16 EXC_COLOR_NOTETEXT         = 81;       /// Note text color.

Reply via email to