diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-10 20:03:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-11 17:09:01 +0100 |
commit | cfbac86a0423c552a042ae7b9702c0904d4e232a (patch) | |
tree | c5d2ec17b913cdc840235dcbac206006fd37c972 /cui | |
parent | 331cafb1484597544bd94fa3f0e0a45b3328a4d8 (diff) |
Related: tdf#129300 add ScHyphenateCell to provide a description
Change-Id: If00a50a36cf2bb5c9b775a4ca1000af5c5be7bf4
Reviewed-on: https://gerrit.libreoffice.org/84892
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/align.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx index 1994a7e8699c..ead7d7d4f014 100644 --- a/cui/source/tabpages/align.cxx +++ b/cui/source/tabpages/align.cxx @@ -298,7 +298,12 @@ bool AlignmentTabPage::FillItemSet( SfxItemSet* rSet ) if (m_xBtnHyphen->get_state_changed_from_saved()) { - rSet->Put(SfxBoolItem(GetWhich(SID_ATTR_ALIGN_HYPHENATION), m_xBtnHyphen->get_active())); + const SfxBoolItem* pHyphItem = static_cast<const SfxBoolItem*>(GetOldItem( + *rSet, SID_ATTR_ALIGN_HYPHENATION)); + assert(pHyphItem); + std::unique_ptr<SfxBoolItem> pNewHyphItem(static_cast<SfxBoolItem*>(pHyphItem->Clone())); + pNewHyphItem->SetValue(m_xBtnHyphen->get_active()); + rSet->Put(*pNewHyphItem); bChanged = true; } |