<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Edit-Repeat does not work for bullets/numbering nor applying list styles"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=60632#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Edit-Repeat does not work for bullets/numbering nor applying list styles"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=60632">bug 60632</a>
from <span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span></b>
<pre>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.]</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>