Kaydet (Commit) 5c5cced0 authored tarafından Mark Hung's avatar Mark Hung

tdf#47795 set mnTextGrouping to last non WITH_PREVIOUS level.

Change-Id: I8ca3b421dbfa83c19234f5cbde0a2ae340d3d268
Reviewed-on: https://gerrit.libreoffice.org/55979
Tested-by: Jenkins
Reviewed-by: 's avatarMark Hung <marklh9@gmail.com>
üst 466e298a
......@@ -2318,6 +2318,16 @@ void EffectSequenceHelper::updateTextGroups()
pGroup->addEffect( pEffect );
}
// Now that all the text groups have been cleared up and rebuilt, we need to update its
// text grouping. addEffect() already make mnTextGrouping the last possible level,
// so just continue to find the last level that is not EffectNodeType::WITH_PREVIOUS.
for(const auto &rGroupMapItem: maGroupMap)
{
const CustomAnimationTextGroupPtr &pGroup = rGroupMapItem.second;
while(pGroup->mnTextGrouping > 0 && pGroup->mnDepthFlags[pGroup->mnTextGrouping - 1] == EffectNodeType::WITH_PREVIOUS)
--pGroup->mnTextGrouping;
}
}
CustomAnimationTextGroupPtr EffectSequenceHelper::createTextGroup( CustomAnimationEffectPtr pEffect, sal_Int32 nTextGrouping, double fTextGroupingAuto, bool bAnimateForm, bool bTextReverse )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment