sw/source/uibase/shells/frmsh.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 68fdfc6013126526f5ba3908c5ad762f18f463cf Author: Justin Luth <justin_l...@sil.org> AuthorDate: Thu Dec 16 11:45:15 2021 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Dec 20 14:13:06 2021 +0100 tdf#90805 sw: if no border when adding border color, add hairline Due to things like tdf#90070 (since LO scales down an image when adding a border), only make this a hairline border. Otherwise, a larger default would seem reasonable... From what I can tell, SID_FRAME_LINECOLOR in SwFrameShell::ExecFrameStyle affects frames and images and OLE objects. Change-Id: Icd72cecb7ebd7fc8b236fb5b8ebd14771399f94d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126910 Tested-by: Justin Luth <jl...@mail.com> Reviewed-by: Justin Luth <jl...@mail.com> Signed-off-by: Xisco Fauli <xiscofa...@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126999 Tested-by: Jenkins diff --git a/sw/source/uibase/shells/frmsh.cxx b/sw/source/uibase/shells/frmsh.cxx index 4463908f4b22..997e40a07da5 100644 --- a/sw/source/uibase/shells/frmsh.cxx +++ b/sw/source/uibase/shells/frmsh.cxx @@ -1219,6 +1219,9 @@ void SwFrameShell::ExecFrameStyle(SfxRequest const & rReq) !aBoxItem->GetLeft() && !aBoxItem->GetRight()) { aBorderLine.SetColor( rNewColor ); + aBorderLine.SetBorderLineStyle(SvxBorderLineStyle::SOLID); + aBorderLine.SetWidth(SvxBorderLineWidth::Hairline); + aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::TOP); aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::BOTTOM); aBoxItem->SetLine(&aBorderLine, SvxBoxItemLine::LEFT);