[Libreoffice-bugs] [Bug 120801] The background color is active when inserting a header using Insert Header/Footer - Header default style.
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Mar 19 11:23:15 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=120801
--- Comment #5 from Justin L <jluth at mail.com> ---
svx/source/xoutdev/xpool.cxx
const Color aNullFillCol(COL_DEFAULT_SHAPE_FILLING); //light blue 2
rPoolDefaults XATTR_FILLSTYLE = new XFillStyleItem(); //default SOLID
This can forced to NONE when the header is turned on with FN_INSERT_PAGEFOOTER
in sw/source/uibase/wrtsh/wrtsh1.cxx's SwWrtShell::ChangeHeaderOrFooter()
if( bOn )
{
SvxULSpaceItem aUL(bHeader ? 0 : MM50, bHeader ? MM50 : 0, RES_UL_SPACE
);
SwFrameFormat* pFormat = bHeader ?
const_cast<SwFrameFormat*>(rMaster.GetHeader().GetHeaderFormat()) :
const_cast<SwFrameFormat*>(rMaster.GetFooter().GetFooterFormat());
pFormat->SetFormatAttr( aUL );
+ XFillStyleItem aFill(css::drawing::FillStyle_NONE);
+ pFormat->SetFormatAttr(aFill);
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210319/5bec3c9a/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list