Skip to content

Commit aa45c37

Browse files
authored
Fix LT-22354: FW crashes when deleting a category (#707)
- Stop attempts to move a template into the position it already occupies
1 parent 95fb51b commit aa45c37

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Src/xWorks/DTMenuHandler.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,11 @@ private void MoveSlot(IMoInflAffixSlot slot, IPartOfSpeech selectedPOS)
651651
}
652652
private void MoveTemplate(IMoInflAffixTemplate template, IPartOfSpeech selectedPOS)
653653
{
654+
if (template.Owner == selectedPOS)
655+
{
656+
// Don't move the template to selectedPOS if it is already there.
657+
return;
658+
}
654659
UndoableUnitOfWorkHelper.DoUsingNewOrCurrentUOW("Undo Move Template",
655660
"Redo Move Template", Cache.ActionHandlerAccessor, () =>
656661
{

0 commit comments

Comments
 (0)