sw/source/uibase/wrtsh/wrtsh1.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 307ee1357cf2c4acd2f3e5a90285e8cb7c4c14e2 Author: Radhey Parekh <radhey.par...@gmail.com> AuthorDate: Thu Apr 1 22:03:11 2021 +0530 Commit: Justin Luth <justin_l...@sil.org> CommitDate: Sat May 29 18:02:54 2021 +0200 tdf#120801: The background colour is active when inserting a header In this patch, the active background colour is disabled by passing null value as default to the FillStyleItem. Previous Result: Background colour was still active even after inserting a header. Result after applying this patch: Background is now remain disabled/inactive. Change-Id: I5e8d22af338ef8ec93aa0e93d338ab8129fdc893 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113468 Tested-by: Justin Luth <justin_l...@sil.org> Reviewed-by: Justin Luth <justin_l...@sil.org> diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index bb14ad2594ec..b26af831754d 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -28,6 +28,7 @@ #include <hintids.hxx> #include <sot/exchange.hxx> +#include <svx/xfillit0.hxx> #include <svx/hdft.hxx> #include <svx/svdview.hxx> #include <svl/itemiter.hxx> @@ -1895,6 +1896,8 @@ void SwWrtShell::ChangeHeaderOrFooter( const_cast<SwFrameFormat*>(rMaster.GetHeader().GetHeaderFormat()) : const_cast<SwFrameFormat*>(rMaster.GetFooter().GetFooterFormat()); pFormat->SetFormatAttr( aUL ); + XFillStyleItem aFill(drawing::FillStyle_NONE); + pFormat->SetFormatAttr(aFill); } } if( bChgd ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits