[Libreoffice-bugs] [Bug 113213] When "Continue previous numbering" is applied, it should also toggle off "restart numbering" for any item(s) that were selected for "Continue previous numbering"
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed May 5 19:26:58 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=113213
--- Comment #10 from Justin L <jluth at mail.com> ---
sw/source/uibase/shells/textsh1.cxx's SwTextShell::Execute
if ( pRule )
{
+ if( rWrtSh.IsNumRuleStart(/*pPam=nullptr*/)
+ && rWrtSh.GetNumRuleAtCurrCursorPos() != pRule)
+ {
+ rWrtSh.SetNumRuleStart(false, /*pPam=*/rWrtSh.GetCursor());
+ }
rWrtSh.SetCurNumRule( *pRule, false, sContinuedListId );
}
[If the selection spans multiple numbering rules, the one at the cursor might
be identical to the one being joined. So this isn't going to be consistent in
every scenario, but it would cover the normal case - which should be good
enough.]
But this isn't good enough because IsNumRuleStart/SetNumRuleStart only affects
pPaM->GetPoint() (the end of the selection), so instead we need to somehow step
through the selection and check each para if it isNumRuleStart for a different
numRule.
--
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/20210505/dfb7f67b/attachment.htm>
More information about the Libreoffice-bugs
mailing list