summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-12-10 15:59:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-12-10 21:06:28 +0100
commitca19ae6e0595f8b69fc4929072636bf10ca3027e (patch)
treec4f6d255bb5b594571c3be5c5f09cb30c9f482b2 /cui/source
parent3e3e2d454ccc907f4a780d7015b6c8941d41648a (diff)
Related: tdf#129300 add ScShrinkToFitCell to provide a description
Change-Id: I628562f1013825e5ba3c0daaf5ee6b098616b6d0 Reviewed-on: https://gerrit.libreoffice.org/84866 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/tabpages/align.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx
index 940f64a1aca3..7e68685beee2 100644
--- a/cui/source/tabpages/align.cxx
+++ b/cui/source/tabpages/align.cxx
@@ -237,9 +237,9 @@ bool AlignmentTabPage::FillItemSet( SfxItemSet* rSet )
const SdrAngleItem* pAngleItem = static_cast<const SdrAngleItem*>(GetOldItem(
*rSet, SID_ATTR_ALIGN_DEGREES));
assert(pAngleItem);
- std::unique_ptr<SdrAngleItem> pNewAngletem(static_cast<SdrAngleItem*>(pAngleItem->Clone()));
- pNewAngletem->SetValue(m_aCtrlDial.GetRotation());
- rSet->Put(*pNewAngletem);
+ std::unique_ptr<SdrAngleItem> pNewAngleItem(static_cast<SdrAngleItem*>(pAngleItem->Clone()));
+ pNewAngleItem->SetValue(m_aCtrlDial.GetRotation());
+ rSet->Put(*pNewAngleItem);
bChanged = true;
}
@@ -289,7 +289,12 @@ bool AlignmentTabPage::FillItemSet( SfxItemSet* rSet )
if (m_xBtnShrink->get_state_changed_from_saved())
{
- rSet->Put(SfxBoolItem(GetWhich(SID_ATTR_ALIGN_SHRINKTOFIT), m_xBtnShrink->get_active()));
+ const SfxBoolItem* pShrinkItem = static_cast<const SfxBoolItem*>(GetOldItem(
+ *rSet, SID_ATTR_ALIGN_SHRINKTOFIT));
+ assert(pShrinkItem);
+ std::unique_ptr<SfxBoolItem> pNewShrinkItem(static_cast<SfxBoolItem*>(pShrinkItem->Clone()));
+ pNewShrinkItem->SetValue(m_xBtnShrink->get_active());
+ rSet->Put(*pNewShrinkItem);
bChanged = true;
}