sc/source/ui/view/formatsh.cxx | 2 ++ sfx2/source/control/unoctitm.cxx | 1 + 2 files changed, 3 insertions(+)
New commits: commit a4339162a6ca17f3fffe599086e7db5c9e101c78 Author: Pranam Lashkari <[email protected]> AuthorDate: Thu Aug 14 08:04:49 2025 +0530 Commit: Szymon Kłos <[email protected]> CommitDate: Thu Aug 14 08:14:44 2025 +0200 sc: disable line style button if border is not set problem: sidebar would disable this button as and when needed but toolbar was not doing the same Change-Id: I08ba037f630b64ee9048112282c4fa83835eaf50 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189557 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Szymon Kłos <[email protected]> diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx index 6e50656a13e6..8207a9e2b0e7 100644 --- a/sc/source/ui/view/formatsh.cxx +++ b/sc/source/ui/view/formatsh.cxx @@ -1472,6 +1472,8 @@ void ScFormatShell::GetAttrState( SfxItemSet& rSet ) SvxLineItem aItem(SID_FRAME_LINESTYLE); aItem.SetLine(&aLine); rSet.Put( aItem ); + if (!aLine.GetWidth()) + rSet.DisableItem(SID_FRAME_LINESTYLE); } } } diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index daf456f5b981..36353bf7f44a 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1385,6 +1385,7 @@ const std::map<std::u16string_view, KitUnoCommand>& GetKitUnoCommandList() { u"AnimationEffects", { PayloadType::EnabledPayload, true } }, { u"ExecuteAnimationEffect", { PayloadType::EnabledPayload, true } }, { u"PasteSlide", { PayloadType::EnabledPayload, true } }, + { u"LineStyle", { PayloadType::EnabledPayload, true } }, { u"ParaLeftToRight", { PayloadType::ParaDirectionPayload, true } }, { u"ParaRightToLeft", { PayloadType::ParaDirectionPayload, true } },
