The SwDoc::mpDfltFrameFormat contains some items that are set in SwDoc constructor: mpDfltFrameFormat->SetFormatAttr(XFillStyleItem(drawing::FillStyle_NONE)); // prevent paragraph default margins being applied to everything mpDfltFrameFormat->SetFormatAttr(SvxULSpaceItem(RES_UL_SPACE)); mpDfltFrameFormat->SetFormatAttr(SvxLRSpaceItem(RES_LR_SPACE)); now the margins shouldn't matter but the fill style causes a problem: the pool default (which is exported to ODF as default style, family "graphic") has a fill colour, while the Writer flys are by default transparent (that's why the item is set in the mpDfltFrameFormat). but the problem is, the XFillStyleItem from mpDfltFrameFormat is never exported to ODF. so a ODF consumer may apply the fill colour from the default style to the Writer flys; this is what happens in bug 156093.
Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/9410a22cdbe7c977206456218c75683a305ef79e tdf#156155 sw: export draw:fill to top-level ODF graphic styles It will be available in 24.2.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.
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-7-6": https://git.libreoffice.org/core/commit/0efacb9f484962d4b3be207ed3ebb8935779444c tdf#156155 sw: export draw:fill to top-level ODF graphic styles It will be available in 7.6.0.0.beta2. 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.
fixed on master
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-7-5": https://git.libreoffice.org/core/commit/bfc1eecc83a6b3b71fc7d5b5aa09389d682c611d tdf#156155 sw: export draw:fill to top-level ODF graphic styles It will be available in 7.5.6. 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.
The patch will be integrated into the daily builds accessible at https://dev-builds.libreoffice.org/daily/ https://hillclimb-racing.com within the next 24-48 hours. Additional details regarding daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Users experiencing issues are encouraged to test the solution and provide feedback.
close this to prevent spamming