https://bugs.documentfoundation.org/show_bug.cgi?id=131098
--- Comment #12 from Regina Henschel <[email protected]> --- Reading the fill from the source in oox is correct. It gets lost in writerfilter/source/dmapper/GraphicImport.cxx If I add the following in https://opengrok.libreoffice.org/xref/core/writerfilter/source/dmapper/GraphicImport.cxx?r=3eb90b33#865 and the needed #include <com/sun/star/drawing/FillStyle.hpp> at the top, then I get the shape fill color. But this is not a complete solution, because it does not consider FillGradient, FillTransparenceGradient, FillTransparence and not theme colors. But is shows that GraphicImport.cxx is likely the correct place to fix the error. drawing::FillStyle eFillStyle; aAny = xSourceGraphProps->getPropertyValue("FillStyle"); if ((aAny >>= eFillStyle) && drawing::FillStyle_SOLID == eFillStyle) { util::Color aFillColor; aAny = xSourceGraphProps->getPropertyValue("FillColor"); if (aAny >>= aFillColor) { xGraphProps->setPropertyValue("FillStyle", uno::Any(drawing::FillStyle_SOLID)); xGraphProps->setPropertyValue("BackColor", aAny); xGraphProps->setPropertyValue("FillColor", aAny); } } Another question is, why xGraphProps do not have these properties from the beginning. -- You are receiving this mail because: You are the assignee for the bug.
