sw/source/uibase/shells/frmsh.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 9f93a26c23ae21324f2389a18512d71d3d610b99 Author: Justin Luth <justin_l...@sil.org> AuthorDate: Thu Dec 16 11:45:15 2021 +0200 Commit: Justin Luth <jl...@mail.com> CommitDate: Thu Dec 16 15:08:14 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> 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);