프로젝트

일반

사용자정보

개정판 902faaea

ID902faaea8f907e5795e5232641e23e12f39ca8a8
상위 a342d378
하위 b60e844d

김태성이(가) 4년 이상 전에 추가함

nuget 정리

Change-Id: I8fee2c9138a11bd4b441c0e29dd75d67ea2f63d9

차이점 보기:

MarkupToPDF/Controls/Polygon/PolygonControl.cs
514 514
        /// <param name="dy"></param>
515 515
        public override void OnMoveCtrlPoint(Point pt, double dx, double dy, bool bAxisLocked = false)
516 516
        {
517
            Point selected = MathSet.getNearPoint((this as IPath).PointSet, pt);
517
            var pointSet = (this as IPath).PointSet;
518 518

  
519
            var tmpPointSet = (this as IPath).PointSet.Where(x => !x.Equals(selected));
520
            Point NearStartpoint = MathSet.getNearPoint(tmpPointSet.ToList(), pt);
519
            Point selected = MathSet.getNearPoint(pointSet, pt);
520

  
521
            Point NearStartpoint = MathSet.getNearPoint(pointSet, pt);
522

  
523
            var tmpPointSet = pointSet.Select((x,inx)=> new { x,inx});
524

  
525
            var selectPoint = tmpPointSet.Where(x => x.x.Equals(pt));
526

  
527
            if(selectPoint.Count() > 0)
528
            {
529
                if (tmpPointSet.Count() > selectPoint.First().inx + 1)
530
                {
531
                    NearStartpoint = pointSet[selectPoint.First().inx + 1];
532
                }
533
                else
534
                {
535
                    NearStartpoint = pointSet[selectPoint.First().inx - 1];
536
                }
537
            }
521 538

  
522 539
            selected.X += dx;
523 540
            selected.Y += dy;

내보내기 Unified diff

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