Handle the case where the EditorPage does not contain any Editors
This commit is contained in:
parent
9335d0fd6d
commit
e94f8d2bdf
@ -624,7 +624,9 @@ namespace UniversalEditor.UserInterface
|
||||
if (page == null)
|
||||
return null;
|
||||
|
||||
return (page.Controls[0] as Editor);
|
||||
if (page.Controls.Count > 0)
|
||||
return (page.Controls[0] as Editor);
|
||||
return null;
|
||||
}
|
||||
public Pages.EditorPage GetCurrentEditorPage()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user