summaryrefslogtreecommitdiff
path: root/svx/source/sidebar
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-04-18 11:18:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2023-04-18 13:55:33 +0200
commitd68d1876216f7d69830fdc16d4a1dd9d9952c2df (patch)
tree026c728cd0e3b9b94fb4d54f11ed24968c1d6c9f /svx/source/sidebar
parente535a2bd67b50cc529115e9ac9e346140ea164dc (diff)
reduce copy and paste a bit
Change-Id: I65cb71d44828e0c0d738c4192c39a697513bc6e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150549 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r--svx/source/sidebar/line/LinePropertyPanelBase.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/svx/source/sidebar/line/LinePropertyPanelBase.cxx b/svx/source/sidebar/line/LinePropertyPanelBase.cxx
index 81ccc4688bd7..b065a66f65a5 100644
--- a/svx/source/sidebar/line/LinePropertyPanelBase.cxx
+++ b/svx/source/sidebar/line/LinePropertyPanelBase.cxx
@@ -260,16 +260,8 @@ void LinePropertyPanelBase::updateLineJoint(bool bDisabled, bool bSetOrDefault,
void LinePropertyPanelBase::updateLineCap(bool bDisabled, bool bSetOrDefault,
const SfxPoolItem* pState)
{
- if(bDisabled)
- {
- mxLBCapStyle->set_sensitive(false);
- mxFTCapStyle->set_sensitive(false);
- }
- else
- {
- mxLBCapStyle->set_sensitive(true);
- mxFTCapStyle->set_sensitive(true);
- }
+ mxLBCapStyle->set_sensitive(!bDisabled);
+ mxFTCapStyle->set_sensitive(!bDisabled);
if(bSetOrDefault)
{