GetSelectedText returning incorrect numbering

I have a plugin using the GetSelectedText method which is returning the incorrect numbering when a paragraph is removed.

  1. Insert a paragraph with numbering. Highlighted the text and observe that the correct numbering is returned on the right side.


  1. Turn on tracked changes. Delete one of the entire sections. Highlight the text and observe the incorrect numbering is displayed for the deleted section.

We see the following text:

1.1	Text in section 1.
1.1	Text in section 2.

Instead of:

1.1	Text in section 1.
1.2 Text in section 2.

OS version: MacOS 11.7.1
App version: 7.4.1.36

Example doc:
sample_doc.docx (13.2 KB)

Hello @doo
If it’s possible, please provide us with your plugin, we will check the situation.

Hi, my plugin code is just using the the GetSelectedText method.

window.Asc.plugin.executeMethod("GetSelectedText", [], function(selectedText) {
  console.log(selectedText);
};

Thank you, we are checking the situation.

Hello @doo
Sorry for the late reply. We have checked the described scenario and have found a bug. We have started working on it.
Thank you for valuable data!