Skip to content

Commit

Permalink
[de] Fix selection bounds for mode with no paragraph mark selection
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillovIlya committed Jan 17, 2025
1 parent 4036781 commit 90f5f82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions word/Editor/Paragraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -9154,6 +9154,12 @@ Paragraph.prototype.GetSelectionBounds = function()
if (StartPos > rangeEnd || EndPos < rangeStart)
continue;

if (rangeEnd === this.Content.length - 1
&& this.GetLogicDocument()
&& this.GetLogicDocument().IsSelectParagraphEndMark
&& !this.GetLogicDocument().IsSelectParagraphEndMark())
--rangeEnd;

drawSelectionState.beginRange(iRange);
for (var CurPos = rangeStart; CurPos <= rangeEnd; CurPos++)
{
Expand Down

0 comments on commit 90f5f82

Please sign in to comment.