| Summary: | Exporting charts (to PDF, but also to a unit test dump) gives different results depending on system dark mode | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Mike Kaganski <mikekaganski> |
| Component: | Chart | Assignee: | Caolán McNamara <caolan.mcnamara> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caolan.mcnamara, erack, khaled |
| Priority: | medium | ||
| Version: | 7.5.0.0 alpha0+ | ||
| Hardware: | All | ||
| OS: | Windows (All) | ||
| See Also: |
https://bugs.documentfoundation.org/show_bug.cgi?id=150786 https://bugs.documentfoundation.org/show_bug.cgi?id=144863 |
||
| Whiteboard: | target:7.5.0 target:7.4.4 | ||
| Crash report or crash signature: | Regression By: | ||
|
Description
Mike Kaganski
2022-10-17 17:10:24 UTC
confirmed. I think this is coming from sc/source/filter/excel/xichart.cxx:509 with aAreaFmt.maPattColor = ... rRoot.GetPalette().GetColor( rFmtInfo.mnAutoPattColorIdx ) ending up with sc/source/filter/excel/xlstyle.cxx:154 and we use the system background color for the chart https://gerrit.libreoffice.org/c/core/+/142383 if we wanted to just always have the same colors for imported-from-excel charts Caolán McNamara committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/f8ad054de38a6592b60ab850e938e6e81ec4cc0d tdf#151610 chart colors should be the same regardless of the desktop theme It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Caolán McNamara committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/ba9780ab214b725122b211b5a9545ba0f8d5b430 tdf#151610 chart colors should be the same regardless of the desktop theme It will be available in 7.4.4. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |