https://bugs.documentfoundation.org/show_bug.cgi?id=60632

--- Comment #10 from Justin L <[email protected]> ---
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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to