diff options
author | Andras Timar <andras.timar@collabora.com> | 2023-12-28 23:59:41 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-01-03 10:33:25 +0100 |
commit | dedcfc8d8935ce9d733c3551b7add1af2b7d730d (patch) | |
tree | b8f12d5f68da1d33323bb2aaafdf2c079b950a6f /external | |
parent | 62e8b576b287111bd0dc79e71334f77dcf909938 (diff) |
tdf#77915 fix import of default shape fill color
Change-Id: Ibbb1ec508dcd87512b4f4b6da8729255c7ed9fb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161396
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 07add037d7845cd31e47efca84b869ca9355eff4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161428
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'external')
-rw-r--r-- | external/libvisio/UnpackedTarball_libvisio.mk | 1 | ||||
-rw-r--r-- | external/libvisio/tdf-77915-fix-import-of-default-shape-fill-color.patch | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/external/libvisio/UnpackedTarball_libvisio.mk b/external/libvisio/UnpackedTarball_libvisio.mk index e19878740289..85e356db8837 100644 --- a/external/libvisio/UnpackedTarball_libvisio.mk +++ b/external/libvisio/UnpackedTarball_libvisio.mk @@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_update_autoconf_configs,libvisio)) $(eval $(call gb_UnpackedTarball_add_patches,libvisio, \ external/libvisio/ubsan.patch \ + external/libvisio/tdf-77915-fix-import-of-default-shape-fill-color.patch \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libvisio/tdf-77915-fix-import-of-default-shape-fill-color.patch b/external/libvisio/tdf-77915-fix-import-of-default-shape-fill-color.patch new file mode 100644 index 000000000000..68c0c2c88b10 --- /dev/null +++ b/external/libvisio/tdf-77915-fix-import-of-default-shape-fill-color.patch @@ -0,0 +1,13 @@ +--- src/lib/VSDStyles.h ++++ src/lib/VSDStyles.h +@@ -129,7 +129,9 @@ struct VSDOptionalFillStyle + ASSIGN_OPTIONAL(style.qsFillColour, qsFillColour); + ASSIGN_OPTIONAL(style.qsShadowColour, qsShadowColour); + ASSIGN_OPTIONAL(style.qsFillMatrix, qsFillMatrix); +- ASSIGN_OPTIONAL(style.fgColour, fgColour); ++ // Colour 'Blue, Variant 1' is special. It is the default, ++ // and it is not saved explicitely in the VSDX file. ++ ASSIGN_OPTIONAL(style.fgColour, fgColour);else fgColour = Colour(0x5b, 0x9b, 0xd5, 0); + ASSIGN_OPTIONAL(style.bgColour, bgColour); + ASSIGN_OPTIONAL(style.shadowFgColour, shadowFgColour); + } |