프로젝트

일반

사용자정보

개정판 025ebf74

ID025ebf74a8d164298bf2a7c44fd6636dca5aba3e
상위 277df14f
하위 57906f93

백흠경이(가) 5년 이상 전에 추가함

issue #923: fixed a problem text control doesn't rotate

Change-Id: I0a45f13948b9aa2966639ec47c48d685afd11c09

차이점 보기:

KCOM/Events/PasteCommand.cs
109 109
                }
110 110
                Controls.AdornerFinal final = new Controls.AdornerFinal(adornerSet);
111 111

  
112
                double realPointX = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.getCurrentPoint.X - final.BorderSize.X - (final.BorderSize.Width / 2);
113
                double realPointY = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2);
114
                final.TranslateItems(realPointX, realPointY);
115

  
116
                if (final.Members.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null)
117
                {
118
                    final.TranslateItems(0.001, 0.001); //dummy
119
                }
112
                /// place controls at current mouse position
113
                var diff = Point.Subtract(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.getCurrentPoint, final.Centeroid);
114
                final.TranslateItems(diff.X, diff.Y);
115

  
116
                //if (final.Members.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null)
117
                //{
118
                //    final.TranslateItems(0.001, 0.001); //dummy
119
                //}
120 120

  
121 121
                Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Add(final);
122 122
            }

내보내기 Unified diff

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