summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2021-12-16 11:45:15 +0200
committerJustin Luth <jluth@mail.com>2021-12-16 15:08:14 +0100
commit9f93a26c23ae21324f2389a18512d71d3d610b99 (patch)
treeb6e07d6411605dab039a9085884076201f4f4f53 /sw/source
parentd67058ff3dd723cc616237216ef28e8dd1f4d611 (diff)
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 <jluth@mail.com> Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/shells/frmsh.cxx3
1 files changed, 3 insertions, 0 deletions
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);