Skip to content

Commit 6ebc5bf

Browse files
[release/9.0] Normalize start Text pointer to support Text Cursor Indicator (#10803)
* Normalize start Text pointer at boundingrectangles * Fix Invariance in TextAdaptor --------- Co-authored-by: Harshit Mishra <[email protected]>
1 parent 47a3c26 commit 6ebc5bf

File tree

1 file changed

+3
-0
lines changed
  • src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls

1 file changed

+3
-0
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/TextAdaptor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ internal Rect[] GetBoundingRectangles(ITextPointer start, ITextPointer end, bool
115115
return Array.Empty<Rect>();
116116
}
117117

118+
start = start.CreatePointer();
119+
end = end.CreatePointer();
120+
118121
TextRangeAdaptor.MoveToInsertionPosition(start, LogicalDirection.Forward);
119122
TextRangeAdaptor.MoveToInsertionPosition(end, LogicalDirection.Backward);
120123

0 commit comments

Comments
 (0)