Reusing Comment IDs After Importing Nodes with Comments

Hi, I noticed a bug in the latest version of Words.NET. Our application involves a lot of importing nodes from other documents, and noticed that comments were acting weird after updating from 21.11 to 23.7 (see attached document for an example). After investigating I determined that new comments being added in code were re-using existing comment IDs.

We managed to work around it by removing the comment and retrying until we get a unique ID.

Unfortunately, we haven’t had the time to recreate a minimal reproduction, but I wanted to report this regardless.

Merge Test (1).docx (18.2 KB)

@bdunphy Unfortunately, it is not quite clear how to reproduce the problem. Could you please provide a simple code that will allow us to reproduce the problem? We will check the issue and provide you more information.