1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2025-01-15 03:49:56 +00:00

Resets "future" if REDO is called after UNDO is used and form is edited.

This commit is contained in:
FellippeHeitor 2018-06-06 12:06:15 -03:00
parent 7b8eee0fbe
commit 84f654f94b

View file

@ -2659,7 +2659,11 @@ SUB SavePreview (Destination AS _BYTE)
END IF
UndoImage(UndoPointer) = Clip$
UndoPointer = UndoPointer + 1
IF UndoPointer > TotalUndoImages THEN TotalUndoImages = TotalUndoImages + 1
IF UndoPointer > TotalUndoImages THEN
TotalUndoImages = TotalUndoImages + 1
ELSEIF UndoPointer < TotalUndoImages THEN
TotalUndoImages = UndoPointer
END IF
IF TotalUndoImages > UBOUND(UndoImage) THEN
REDIM _PRESERVE UndoImage(UBOUND(UndoImage) + 99) AS STRING
END IF