tdf#151547 pptx import: workaround for COL_AUTO collision
commitadfdd2bee4d1d59bf1ee372d9c242cf0b691e423
authorSarper Akdemir <sarper.akdemir@collabora.com>
Mon, 17 Oct 2022 06:06:20 +0000 (17 09:06 +0300)
committerMiklos Vajna <vmiklos@collabora.com>
Mon, 24 Oct 2022 13:11:04 +0000 (24 15:11 +0200)
treee425c2e65b9198981def6249a3008b1ca8fb3a28
parent9ad7df41572d67687221cb43d53cde27a45fff0f
tdf#151547 pptx import: workaround for COL_AUTO collision

In the current implementation of ::Color, it is not possible
to have fully transparent white text (since it collides with
COL_AUTO and gets interpreted as Automatic Color).

Implement a workaround for import of fully transparent white
text color so that it isn't interpreted as the magic value
COL_AUTO (i.e. instead of fully transparent #FFFFFF import
as fully transparent #FFFFFE).

Change-Id: Ide750093ef8a89f1424ddd8f4e9ee1e18209f2ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141439
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
oox/source/drawingml/textcharacterproperties.cxx
sd/qa/unit/data/pptx/tdf151547-transparent-white-text.pptx [new file with mode: 0644]
sd/qa/unit/import-tests2.cxx