diff options
Diffstat (limited to 'cui/source/tabpages/align.cxx')
-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 e79a39607d73..cdd87f0cf2a4 100644 --- a/cui/source/tabpages/align.cxx +++ b/cui/source/tabpages/align.cxx @@ -90,6 +90,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); } |