Skip to content

Commit 45ad2ce

Browse files
author
Mirroring
committed
Merge commit 'cb064c3e2e77bd20a64a622871e696549ab949d8'
2 parents 5bf5c01 + cb064c3 commit 45ad2ce

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)