Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/SIL.LCModel/DomainImpl/OverridesLing_Lex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ public IEnumerable<ICmObject> AllPossiblePictures

/// <summary>
/// Gets all the bulk-editable things that might be used as the destination of a bulk edit to
/// Allomorphs. This includes the entries that do not have allomorphs. It does NOT include
/// MoForms that are the LexemeForm of some entry. (Possibly the name should indicate this better somehow?)
/// Allomorphs. This includes MoForms that are the LexemeForm of some entry.
/// </summary>
[VirtualProperty(CellarPropertyType.ReferenceSequence, "CmObject")]
public IEnumerable<ICmObject> AllPossibleAllomorphs
Expand All @@ -217,9 +216,7 @@ public IEnumerable<ICmObject> AllPossibleAllomorphs
// Optimize JohnT: are we likely to modify any of the iterators while iterating? If not
// we may not need the ToList().
return (from entry in entries from morph in entry.AlternateFormsOS select morph).Cast<ICmObject>()
.Concat((from entry in entries
where entry.AlternateFormsOS.Count == 0
select entry).Cast<ICmObject>())
.Concat((from entry in entries select entry.LexemeFormOA).Cast<ICmObject>())
.ToList();
}
}
Expand Down
Loading