190930
This commit is contained in:
@@ -32,15 +32,12 @@ Namespace SimpleHistory
|
||||
Dim ret As HistoryPoint
|
||||
|
||||
If stackPast.Count > 0 Then
|
||||
|
||||
Dim hp As HistoryPoint = stackPast.Pop
|
||||
hp.Undo()
|
||||
stackFuture.Push(hp)
|
||||
ret = hp
|
||||
|
||||
Else
|
||||
ret = Nothing
|
||||
|
||||
End If
|
||||
|
||||
Return ret
|
||||
@@ -53,15 +50,12 @@ Namespace SimpleHistory
|
||||
Dim ret As HistoryPoint
|
||||
|
||||
If stackFuture.Count > 0 Then
|
||||
|
||||
Dim hp As HistoryPoint = stackFuture.Pop
|
||||
hp.Redo()
|
||||
stackPast.Push(hp)
|
||||
ret = hp
|
||||
|
||||
Else
|
||||
ret = Nothing
|
||||
|
||||
End If
|
||||
|
||||
Return ret
|
||||
|
||||
Reference in New Issue
Block a user