The Number of list was reset while importing from a source doucment

Hi guys

When inserting a sub document, we found a problem that the number of the list was reset, as shown in the figure below. The starting value in the source document was 2, and it was reset to 1 after reaching the target document. The code and attachments below are the corresponding documents.

The version of aspose.word is 202012

image.png (12.0 KB)

image.png (17.8 KB)

bellow are the code and enclosed files :

dest.docx (13.1 KB)
listnumber.docx (513.6 KB)

            Document dest = new Document("d:\\dest.docx");
            Document list = new Document("d:\\listnumber.docx");
            Node last = dest.LastSection.Body.LastParagraph;
            if (list != null)
            {
                foreach (Section s in list.Sections)
                {
                    foreach (Node node in s.Body.ChildNodes)
                    {
                        try
                        {
                            Node newNode = dest.ImportNode(node, true, ImportFormatMode.KeepSourceFormatting);

                            last.ParentNode.InsertAfter(newNode, last);
                            last = newNode;
                        }
                        catch (Exception ex)
                        {
                            
                        }
                    }
                }
            }
            dest.Save("d:\\merged.docx", SaveFormat.Docx);

@wengyeung, I can reproduce the issue with Aspose.Words .NET 20.12, but the latest Aspose.Words .NET 22.10 produces the expected results, i.e., no change in the list numbering. Could you update to the latest Aspose.Words and check again?

merged.aw.20.12.docx (12.9 KB)
merged.aw.22.10.docx (12.8 KB)