[Libreoffice-bugs] [Bug 129270] Chapter Numbering of Heading 1 changes after setting Return, if Next Style is set to Heading 2
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Jul 28 09:36:46 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=129270
--- Comment #5 from Justin L <jluth at mail.com> ---
[I'm having a hard time recreating this problem from scratch. It doesn't happen
with ANY style-with-next-style. It doesn't even necessarily apply to Chapter
numbering enabled. It seems to only happen when the Chapter Numbering style is
directly (re)applied to the paragraph.]
Prior to
- if( nInitSize || pDest->HasSwAttrSet() ||
pDest->HasAttrSet is true, so everything was set.
But now that
+ if( nInitSize || hasSwAttrSet ||
is false it copies everything, including the ListLevel.
This could be a bit tricky because this is function CutImpl/CutText, which is
used in more places than just from this document's context of
SplitContentNode()
Here is debugging output when hitting Enter:
::CutImpl copy hard attributes on whole paragraph. Dest[This is the first
Heading 1] Len[27]
---nWHich[83] #LIST_LEVEL
---nWHich[127] #FRAME_STYLE_NAME
---nWHich[128] #CONDITIONAL_STYLE_NAME
nInitSize[0] hasSwAttrSet[0]
The code for cut and split are FILLED with special handling for numbering.
Perhaps:
- hasSwAttrSet = false;
- if (pDest->GetpSwAttrSet())
+ hasSwAttrSet = pDest->GetAttrListLevel() != GetAttrListLevel();
+ if (!hasSwAttrSet && pDest->GetpSwAttrSet())
--
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/20210728/6d70ed14/attachment.htm>
More information about the Libreoffice-bugs
mailing list