프로젝트

일반

사용자정보

개정판 50e6a733

ID50e6a733acf8d90849a95e456666c03ed1d41e9c
상위 7575b5e5
하위 9ecf1933, ac8521e2

송근호이(가) 5년 이상 전에 추가함

issue #000 도면이 회전했을 때 만들어진 ArrowTextControl의 StartPoint에 있는 Thumb는 Angle 값 변화해 따른 dx,dy가 아닌 dx,dy를 StartPoint에 더해줘야한다.

Change-Id: I71f6e21a127424268fd220877100881d6212293f

차이점 보기:

MarkupToPDF/Controls/Text/ArrowTextControl.cs
1638 1638

  
1639 1639
            Point selected = MathSet.getNearPoint(path.PointSet, pt);
1640 1640

  
1641
            if (Math.Abs(this.Angle).ToString() == "90")
1642
            {
1643
                selected.X += dy;
1644
                selected.Y -= dx;
1645
            }
1646
            else if (Math.Abs(this.Angle).ToString() == "270")
1647
            {
1648
                selected.X -= dy;
1649
                selected.Y += dx;
1650
            }
1651
            else if (Math.Abs(this.Angle).ToString() == "180")
1641
            //StartPoint에 표시된 Thumb는 dx,dy가 +로 더해줘야한다.
1642
            if (path.PointSet.IndexOf(selected) != 0)
1652 1643
            {
1653
                selected.X -= dx;
1654
                selected.Y -= dy;
1644
                if (Math.Abs(this.Angle).ToString() == "90")
1645
                {
1646
                    selected.X += dy;
1647
                    selected.Y -= dx;
1648
                }
1649
                else if (Math.Abs(this.Angle).ToString() == "270")
1650
                {
1651
                    selected.X -= dy;
1652
                    selected.Y += dx;
1653
                }
1654
                else if (Math.Abs(this.Angle).ToString() == "180")
1655
                {
1656
                    selected.X -= dx;
1657
                    selected.Y -= dy;
1658
                }
1659
                else
1660
                {
1661
                    selected.X += dx;
1662
                    selected.Y += dy;
1663
                }
1655 1664
            }
1656 1665
            else
1657 1666
            {
......
1674 1683
            {
1675 1684
                pts[1] = new Point(pts[1].X, pts[1].Y + dy);
1676 1685
            }
1686

  
1677 1687
            path.PointSet[1] = pts[1];
1678 1688

  
1679 1689
            if (path.PointSet.Count > i) {

내보내기 Unified diff

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