Rename Parents -> Ancestors

This commit is contained in:
John Lewin 2018-06-20 13:41:32 -07:00
parent 3da126edcc
commit 51102b2152
3 changed files with 3 additions and 3 deletions

View file

@ -105,7 +105,7 @@ namespace MatterHackers.MatterControl.Library
activeContainer.KeywordFilter = "";
// If the new container is an ancestor of the active container we need to Dispose everyone up to that point
if (activeContainer.Parents().Where(p => p == newContainer).Any())
if (activeContainer.Ancestors().Where(p => p == newContainer).Any())
{
var context = activeContainer;
while (context != newContainer)