From c62cc8b3cda7ad151d1f6f3f1dbe909b6e19c1a7 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Tue, 26 Jun 2018 01:32:36 -0300 Subject: [PATCH] Fixes bug that wouldn't allow pasting of controls reliably. --- InForm/UiEditorPreview.bas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InForm/UiEditorPreview.bas b/InForm/UiEditorPreview.bas index 9acb9d2..b2dbb1b 100644 --- a/InForm/UiEditorPreview.bas +++ b/InForm/UiEditorPreview.bas @@ -1802,7 +1802,7 @@ SUB LoadPreview (Destination AS _BYTE) END IF END IF - IF INSTR(NameChanges$, NewParentID + "=") THEN + IF LEN(NewParentID) > 0 AND INSTR(NameChanges$, NewParentID + "=") THEN 'This control's container had a name change when it was 'pasted, so we'll reassign it to its new cloned parent: DIM NewID AS LONG, EndNewID AS LONG