프로젝트

일반

사용자정보

개정판 49a6d7c3

ID49a6d7c371b2972ac1d9747aa95fac9c2bec651f
상위 d3161976
하위 e550eccb

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

Fix: ImgControl, SignControl, SymControl, SymControlN 생성 시 ShiftKey 적용

Change-Id: Ifedc7a3ef03bc8c11a00ed8cce4eff99f8a14d65

차이점 보기:

MarkupToPDF/Controls/Etc/SymControlN.cs
394 394
                this.Base_ViewBox.Child = ob;
395 395
            }
396 396

  
397
            this.EndPoint = pt;
398
            this.LeftBottomPoint = new Point(this.StartPoint.X, this.EndPoint.Y);
399
            this.TopRightPoint = new Point(this.EndPoint.X, this.StartPoint.Y);
397
            if (bAxisLocked)
398
            {
399
                double _dx = pt.X - this.StartPoint.X;
400
                double _dy = pt.Y - this.StartPoint.Y;
401
                double dist = Math.Max(Math.Abs(_dx), Math.Abs(_dy));
402
                var dir = new Vector(_dx, _dy);
403
                dir.Normalize();
404

  
405
                this.LeftBottomPoint = new Point(this.StartPoint.X, this.StartPoint.Y + (dir.Y > 0 ? 1 : -1) * dist);
406
                this.TopRightPoint = new Point(this.StartPoint.X + (dir.X > 0 ? 1 : -1) * dist, this.StartPoint.Y);
407
                this.EndPoint = new Point(this.TopRightPoint.X, this.LeftBottomPoint.Y);
408
            }
409
            else
410
            {
411
                this.EndPoint = pt;
412
                this.LeftBottomPoint = new Point(this.StartPoint.X, this.EndPoint.Y);
413
                this.TopRightPoint = new Point(this.EndPoint.X, this.StartPoint.Y);
414
            }
400 415

  
401 416
            this.PointSet = new List<Point>
402 417
            {

내보내기 Unified diff

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