diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-22 17:36:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-23 10:53:29 +0100 |
commit | 2c4f996869dfcde97b13063f283d6f3d3432714c (patch) | |
tree | b5d8ff4021aede484b3414cbb44a39951a5719d0 /sc | |
parent | 667d49fd5cc4d5bd8551a88ef803badf70296c00 (diff) |
use ScVerticalStackCell instead of SfxBoolItem(SID_ATTR_ALIGN_STACKED)
Change-Id: I4571d8e399e38a91a029419f9c4b13c237af1c01
Reviewed-on: https://gerrit.libreoffice.org/85717
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/sidebar/AlignmentPropertyPanel.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx index a50c529cef9f..37b74344e27a 100644 --- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx +++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx @@ -187,7 +187,7 @@ IMPL_LINK_NOARG( AlignmentPropertyPanel, AngleModifiedHdl, Edit&, void ) IMPL_LINK_NOARG( AlignmentPropertyPanel, ClickStackHdl, Button*, void ) { bool bVertical = mpCBStacked->IsChecked(); - SfxBoolItem aStackItem( SID_ATTR_ALIGN_STACKED, bVertical ); + ScVerticalStackCell aStackItem(bVertical); GetBindings()->GetDispatcher()->ExecuteList( SID_ATTR_ALIGN_STACKED, SfxCallMode::RECORD, { &aStackItem }); } @@ -341,8 +341,8 @@ void AlignmentPropertyPanel::NotifyItemUpdate( if (eState >= SfxItemState::DEFAULT) { mpCBStacked->EnableTriState(false); - const SfxBoolItem* aStackItem = static_cast<const SfxBoolItem*>(pState); - mbMultiDisable = aStackItem->GetValue(); + const SfxBoolItem* pStackItem = static_cast<const ScVerticalStackCell*>(pState); + mbMultiDisable = pStackItem->GetValue(); mpCBStacked->Check(mbMultiDisable); mpTextOrientBox->Enable(!mbMultiDisable); } |