diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-10 20:15:27 +0000 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2019-12-12 04:07:06 +0100 |
commit | 0476613b0150b706cbff80d08c6983793c7fd612 (patch) | |
tree | 2143ef68ab002f445e7048f1c3f18ccf3a159f91 /cui | |
parent | 844c56230fde10bd62269ed14aa7f7e10edb2ea2 (diff) |
tdf#129300 If it would create no change, don't force it
otherwise a bogus "change" from the parent style is shown in the organizer
this dates to...
commit 755ad6834625488c5d31d4bacc9370eae7ffd8f3
Date: Tue Oct 5 11:15:56 2010 -0400
Ported calc-distributed-cell-text-*.diff from ooo-build.
Change-Id: I49fc654a232d3c0f43f8add9a9f9fee34a6c5add
Reviewed-on: https://gerrit.libreoffice.org/84895
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-on: https://gerrit.libreoffice.org/84985
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/align.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cui/source/tabpages/align.cxx b/cui/source/tabpages/align.cxx index b4f1a2b9ad73..559cb88755a3 100644 --- a/cui/source/tabpages/align.cxx +++ b/cui/source/tabpages/align.cxx @@ -98,6 +98,11 @@ void lcl_SetJustifyMethodToItemSet(SfxItemSet& rSet, sal_uInt16 nWhichJM, const if (rLB.get_active() == nListPos) eJM = SvxCellJustifyMethod::Distribute; + // tdf#129300 If it would create no change, don't force it + const SvxJustifyMethodItem& rOldItem = static_cast<const SvxJustifyMethodItem&>(rSet.Get(nWhichJM)); + if (rOldItem.GetValue() == eJM) + return; + SvxJustifyMethodItem aItem(eJM, nWhichJM); rSet.Put(aItem); } |