From 84f654f94ba8571c6a7f901d1762c95238deb567 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Wed, 6 Jun 2018 12:06:15 -0300 Subject: [PATCH] Resets "future" if REDO is called after UNDO is used and form is edited. --- InForm/UiEditorPreview.bas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/InForm/UiEditorPreview.bas b/InForm/UiEditorPreview.bas index 609a3a3..a0bbe78 100644 --- a/InForm/UiEditorPreview.bas +++ b/InForm/UiEditorPreview.bas @@ -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