[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Dec 23 09:54:25 UTC 2019
sc/source/ui/sidebar/AlignmentPropertyPanel.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 2c4f996869dfcde97b13063f283d6f3d3432714c
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Dec 22 17:36:33 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Dec 23 10:53:29 2019 +0100
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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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);
}
More information about the Libreoffice-commits
mailing list