[Libreoffice-bugs] [Bug 113998] Moving a bulleted list entry up/down also moves the subsequent text line

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon May 3 14:15:35 UTC 2021


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

Justin L <jluth at mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |---
             Status|RESOLVED                    |NEW

--- Comment #9 from Justin L <jluth at mail.com> ---
repro 7.2+
I used the document and steps to reproduce from comment 4. When I move "bla" up
with subpoints, "Heading" follows along with them. (This makes some sense.
"Bla" is at listLevel 1, while "Heading" is a Heading 2, which is listLevel 2.)

So, what SHOULD happen here?  Should we ONLY move items up and down through the
same numbering rule? But currently we can even move through normal paragraphs,
so that would be a huge change. Our current method is very non-complex and
therefore flexible - any list grouping can move up one "paragraph" regardless
of the content.

But I suppose it wouldn't be too hard to add an "if belongs to the same
numbering rule" when deciding whether to include a line as a sub-point or not.
[The problem with doing this is that it is VERY dependent on styles, while most
people just use the toolbar, and might intentionally mix and match
bullets/numbering to make sub-points.]

If lcl_GotoNextPrevNum from docnum.cxx compares 
-           if( pRule )
+           if( pRule && pRule->IsAutoRule() == pOrigRule->IsAutoRule())
then I get the requested result. But that looks like a rather scary change that
wouldn't just necessarily affect moving with subpoints. (Nor is "autoRule"
documented, so I don't know exactly what that really is.)

-- 
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/20210503/408c8c1a/attachment.htm>


More information about the Libreoffice-bugs mailing list