Small bug fix
This commit is contained in:
parent
f6f7fd7d05
commit
e59b4113dc
@ -1873,7 +1873,7 @@ namespace Aml.Editor.Plugin
|
||||
IEnumerable<PackagePart> rootParts = amlx.GetPartsByRelationShipType(AutomationMLContainer.RelationshipType.Root);
|
||||
|
||||
// We expect the aml to only have one root part
|
||||
if (rootParts.First() != null)
|
||||
if (rootParts.Count() != 0 && rootParts.First() != null)
|
||||
{
|
||||
|
||||
PackagePart part = rootParts.First();
|
||||
@ -4496,7 +4496,7 @@ namespace Aml.Editor.Plugin
|
||||
}
|
||||
else
|
||||
{
|
||||
this.advancedModeToolStripMenuItem.Text = "Expert mode";
|
||||
this.advancedModeToolStripMenuItem.Text = "Advanced mode";
|
||||
}
|
||||
|
||||
// Show/hide elements
|
||||
|
Loading…
Reference in New Issue
Block a user