프로젝트

일반

사용자정보

개정판 34ac8db7

ID34ac8db7f7b582586ee927d3fdae3df9b8f7e77f
상위 f0c9e80e
하위 85132173

백흠경이(가) 7달 전에 추가함

Fix: Delete에 대한 Undo/Redo 기능 수정

Change-Id: I55592f4822b661ed7f61c714382bd8d988145ef7

차이점 보기:

KCOM/Events/Implementation/TopMenuEvent.cs
101 101
            if (adornerMembers.Count() > 0)
102 102
            {
103 103
                //UndoCommand.Instance.Push(adornerMembers.Select(x => x.DrawingData).Cast<CommentUserInfo>().ToList(), adnoerFinal.AngleValue);
104
                UndoCommand.Instance.Push(adornerMembers.Select(x => x.DrawingData).Cast<CommentUserInfo>().ToList());
104
                UndoCommand.Instance.Push(EventType.Operation, adornerMembers.Select(x => x.DrawingData).Cast<CommentUserInfo>().ToList());
105 105
            }
106 106
        }
107 107

  
......
1024 1024
                                .Where(x => x is RectCloudControl || x is CloudControl ||
1025 1025
                                x is MarkupToPDF.Controls.Text.TextControl || x is MarkupToPDF.Controls.Text.ArrowTextControl)
1026 1026
                                .ToList();
1027
                UndoCommand.Instance.Push(comments);
1027
                UndoCommand.Instance.Push(EventType.Operation, comments);
1028 1028

  
1029 1029
                foreach (AdornerMember InnerItem in AdonerList)
1030 1030
                {
......
2548 2548
                    #endregion
2549 2549
                    #region Delete
2550 2550
                    case "Delete":
2551
                        DeleteCommand.Instance.Execute(SelectionSet.Instance.SelectedItems);
2551
                        UndoCommand.Instance.Push(EventType.Delete, SelectionSet.Instance.SelectedItems);
2552 2552
                        this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Clear();
2553 2553

  
2554 2554
                        instanceToggle.IsChecked = false;

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)