[Libreoffice-bugs] [Bug 60632] Edit-Repeat does not work for bullets/numbering nor applying list styles
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Jul 19 08:06:43 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=60632
--- Comment #10 from Justin L <jluth at mail.com> ---
bool SfxListUndoAction::CanRepeat(SfxRepeatTarget&r) const
{
SAL_DEBUG("SfxListUndoAction::CanRepeat checks ["<< nCurUndoAction<<"] actions,
and fails if any cannot undo");
for(size_t i=0;i<nCurUndoAction;i++)
{
if(maUndoActions[i].pAction->CanRepeat(r))
return false;
}
return true;
}
It passes for INSNUM, INSATR, and RESETATR, but not NUMRULE_CREATE, and thus
cancels the repeat.
So I tested what happens if you try to repeat the SECOND manual numbering
instead of the FIRST one, and that works fine, since it isn't creating a new
numbering rule.
What about if you apply a pre-defined style? That doesn't work at all (but it
does work for a paragraph style...). [In this case (SwUndoId::EMPTY ==
rSh.GetRepeatInfo(nullptr)), so probably a lot of basic plumbing is missing.]
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210719/850b8711/attachment.htm>
More information about the Libreoffice-bugs
mailing list