Incorrectly renumbered lower levels after a document converted from DOCX to RTF. Aspose.Words for .Net, version 22.2

Hello Aspose,
I have found a new issue with incorrectly re-numbered for sub-level numbers. It looks like they continue from the previous section, which is incorrect. For Example:

1 A Heading
1.1 A Subpoint
1.2 Another Subpoint
2 Another Heading
2.1 A Subpoint
2.2 Another Subpoint

becomes:

1 A Heading
1.1 A Subpoint
1.2 Another Subpoint
2 Another Heading
2.3 A Subpoint
2.4 Another Subpoint

image.png (29.7 KB)

Here is a sample app to reproduce the problem:
Aspose.Words.IncorrectlyRenumbering.zip

Many thanks,
Ievgenii Bukhinnyk.

@licenses Please note that if we resave the original document to RTF using MS Word, we encounter the same problem as you described. This is because RTF format does not support RestartAfterLevel property of the list. You can get it with AW

Paragraph.ListLevel.RestartAfterLevel

for Docx and Rtf formats and see for yourself.
To solve this issue you can reconsider the use of the excessively hierarchical list and split it into two lists for Heading levels and Text levels respectively.

ListDef.png (9.3 KB)

I was able to replicate this issue with MS Word. Thanks!

@licenses Please feel free to ask in case of any issues, we will be glad to help you.