IDE: switch editorcomponent window: set parent to nil before changing owner

git-svn-id: trunk@36167 -
This commit is contained in:
mattias 2012-03-19 16:29:41 +00:00
parent a4e1f89a1c
commit e36cbeb5b9

View File

@ -4015,6 +4015,7 @@ begin
FAOwner := ANewNoteBook;
FPageName := ANewNoteBook.NoteBookPages[ANewNoteBook.NoteBookIndexOfPage(ANewPage)];
EditorComponent.Parent := nil;
// Change the Owner of the SynEdit
EditorComponent.Owner.RemoveComponent(EditorComponent);
FSourceNoteBook.InsertComponent(EditorComponent);