From 2c4f996869dfcde97b13063f283d6f3d3432714c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 22 Dec 2019 17:36:33 +0000 Subject: use ScVerticalStackCell instead of SfxBoolItem(SID_ATTR_ALIGN_STACKED) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4571d8e399e38a91a029419f9c4b13c237af1c01 Reviewed-on: https://gerrit.libreoffice.org/85717 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sc/source/ui/sidebar/AlignmentPropertyPanel.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc') 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(pState); - mbMultiDisable = aStackItem->GetValue(); + const SfxBoolItem* pStackItem = static_cast(pState); + mbMultiDisable = pStackItem->GetValue(); mpCBStacked->Check(mbMultiDisable); mpTextOrientBox->Enable(!mbMultiDisable); } -- cgit