summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-12-10 16:38:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-12-11 17:08:16 +0100
commit331cafb1484597544bd94fa3f0e0a45b3328a4d8 (patch)
tree04e88511f2eb1cac4447a8c719cbc80b39f50300 /cui/source
parentdead2a5b0eaae3fb33f9d2b4d249849864014585 (diff)
Related: tdf#129300 add ScLineBreakCell to provide a description
Change-Id: Ief739616163c68e0e30d6287fdac90c1bcc9d13f Reviewed-on: https://gerrit.libreoffice.org/84879 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.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx
index 9238ff52f11f..1994a7e8699c 100644
--- a/cui/source/tabpages/align.cxx
+++ b/cui/source/tabpages/align.cxx
@@ -287,7 +287,12 @@ bool AlignmentTabPage::FillItemSet( SfxItemSet* rSet )
if (m_xBtnWrap->get_state_changed_from_saved())
{
- rSet->Put(SfxBoolItem(GetWhich(SID_ATTR_ALIGN_LINEBREAK), m_xBtnWrap->get_active()));
+ const SfxBoolItem* pWrapItem = static_cast<const SfxBoolItem*>(GetOldItem(
+ *rSet, SID_ATTR_ALIGN_LINEBREAK));
+ assert(pWrapItem);
+ std::unique_ptr<SfxBoolItem> pNewWrapItem(static_cast<SfxBoolItem*>(pWrapItem->Clone()));
+ pNewWrapItem->SetValue(m_xBtnWrap->get_active());
+ rSet->Put(*pNewWrapItem);
bChanged = true;
}