Small bug fix

This commit is contained in:
Administrator 2022-05-06 08:34:22 +02:00
parent f6f7fd7d05
commit e59b4113dc

View File

@ -1873,7 +1873,7 @@ namespace Aml.Editor.Plugin
IEnumerable<PackagePart> rootParts = amlx.GetPartsByRelationShipType(AutomationMLContainer.RelationshipType.Root); IEnumerable<PackagePart> rootParts = amlx.GetPartsByRelationShipType(AutomationMLContainer.RelationshipType.Root);
// We expect the aml to only have one root part // 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(); PackagePart part = rootParts.First();
@ -4496,7 +4496,7 @@ namespace Aml.Editor.Plugin
} }
else else
{ {
this.advancedModeToolStripMenuItem.Text = "Expert mode"; this.advancedModeToolStripMenuItem.Text = "Advanced mode";
} }
// Show/hide elements // Show/hide elements