Browse Source

Fixed textbox copy

pull/131/head
Nikita Tsukanov 11 years ago
parent
commit
8a4e62ef7b
  1. 2
      src/Perspex.Controls/TextBox.cs

2
src/Perspex.Controls/TextBox.cs

@ -475,7 +475,7 @@ namespace Perspex.Controls
var selectionEnd = this.SelectionEnd;
var start = Math.Min(selectionStart, selectionEnd);
var end = Math.Max(selectionStart, selectionEnd);
if (start == end || (this.Text?.Length ?? 0) <= end)
if (start == end || (this.Text?.Length ?? 0) < end)
{
return "";
}

Loading…
Cancel
Save