Browse Source
Merge pull request #11231 from rabbitism/text
Fix SelectableTextBlock double click selection crash issue .
pull/11247/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
src/Avalonia.Controls/Utils/StringUtils.cs
|
|
|
@ -1,3 +1,4 @@ |
|
|
|
using System; |
|
|
|
using System.Globalization; |
|
|
|
using Avalonia.Media.TextFormatting.Unicode; |
|
|
|
|
|
|
|
@ -122,6 +123,8 @@ namespace Avalonia.Controls.Utils |
|
|
|
{ |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
cursor = Math.Min(cursor, text.Length); |
|
|
|
|
|
|
|
int begin; |
|
|
|
int i; |
|
|
|
|