Browse Source

Merge pull request #667 from yusuf-gunaydin/issue-666

Fixed crash when undo is called on a TextBox with no changes.
pull/669/head
Steven Kirk 10 years ago
committed by GitHub
parent
commit
ba1bb0dbc3
  1. 2
      src/Avalonia.Controls/Utils/UndoRedoHelper.cs

2
src/Avalonia.Controls/Utils/UndoRedoHelper.cs

@ -37,7 +37,7 @@ namespace Avalonia.Controls.Utils
public void Undo()
{
if (_currentNode != null)
if (_currentNode?.Previous != null)
{
_currentNode = _currentNode.Previous;
}

Loading…
Cancel
Save