devexpress-richedit 24.1.11-build-25058-0102 → 24.1.11-build-25065-0103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101825,10 +101825,16 @@ class TableBasedAutoCorrectProviderBase extends AutoCorrectProviderBase {
101825
101825
  this.control.modelManager.modelManipulator.range.removeInterval(new SubDocumentInterval(this.subDocument, interval), true, false);
101826
101826
  let endOfInsertedInterval = interval.start;
101827
101827
  for (let i = 0; i < replaceWithStrings.length; i++) {
101828
- const result = this.control.modelManager.modelManipulator.text.insertTextViaHistory(new InsertTextManipulatorParams(new SubDocumentPosition(this.subDocument, endOfInsertedInterval), charPropsBundle, RunType.TextRun, replaceWithStrings[i]));
101829
- endOfInsertedInterval = result.insertedInterval.end;
101830
- if (replaceWithStrings[i + 1]) {
101831
- const result = this.control.modelManager.modelManipulator.paragraph.insertParagraphViaHistory(new InsertParagraphManipulatorParams(new SubDocumentPosition(this.subDocument, endOfInsertedInterval), charPropsBundle));
101828
+ if (replaceWithStrings[i]) {
101829
+ const subDocumentPosition = new SubDocumentPosition(this.subDocument, endOfInsertedInterval);
101830
+ const insertTextManipulatorParams = new InsertTextManipulatorParams(subDocumentPosition, charPropsBundle, RunType.TextRun, replaceWithStrings[i]);
101831
+ const result = this.control.modelManager.modelManipulator.text.insertTextViaHistory(insertTextManipulatorParams);
101832
+ endOfInsertedInterval = result.insertedInterval.end;
101833
+ }
101834
+ if (i < replaceWithStrings.length - 1) {
101835
+ const subDocumentPosition = new SubDocumentPosition(this.subDocument, endOfInsertedInterval);
101836
+ const insertTextManipulatorParams = new InsertParagraphManipulatorParams(subDocumentPosition, charPropsBundle);
101837
+ const result = this.control.modelManager.modelManipulator.paragraph.insertParagraphViaHistory(insertTextManipulatorParams);
101832
101838
  endOfInsertedInterval = result.end;
101833
101839
  }
101834
101840
  }