프로젝트

일반

사용자정보

개정판 3f3f05af

ID3f3f05afca1d0f9dc66e30bcbd63f99713596156
상위 20f9fa83
하위 7630efe2, 4253757a, 0b885fb1

조봉훈이(가) 약 2년 전에 추가함

Fix symbol equal spacing when using Grid Snap

Change-Id: Ibc6ddd49300de6636c7e47359d7e44cd0571113d

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
2863 2863
                    // START_X가 END_X 값을 벗어날 경우 END_X 값 보정
2864 2864
                    if ((line.SPPID.END_X - line.SPPID.START_X) * (!isReverseX ? 1 : -1) <= 0)
2865 2865
                    {
2866
                        GridSetting grid = GridSetting.GetInstance();
2867
                        line.SPPID.END_X = line.SPPID.START_X + (grid.Length * (!isReverseX ? 1 : -1));
2866
                        line.SPPID.END_X = line.SPPID.START_X + (GridSetting.GetInstance().Length * (!isReverseX ? 1 : -1));
2868 2867
                    }
2869 2868
                }
2870 2869
                else if (line.SlopeType == SlopeType.VERTICAL && changeOtherCoordinate)
......
2873 2872
                    // START_Y가 END_Y 값을 벗어날 경우 END_Y 값 보정
2874 2873
                    if ((line.SPPID.END_Y - line.SPPID.START_Y) * (!isReverseY ? 1 : -1) <= 0)
2875 2874
                    {
2876
                        GridSetting grid = GridSetting.GetInstance();
2877
                        line.SPPID.END_Y = line.SPPID.START_Y + (grid.Length * (!isReverseY ? 1 : -1));
2875
                        line.SPPID.END_Y = line.SPPID.START_Y + (GridSetting.GetInstance().Length * (!isReverseY ? 1 : -1));
2878 2876
                    }
2879 2877
                }
2880 2878
            }
......
2888 2886
                    // END_X가 START_X 값을 벗어날 경우 START_X 값 보정
2889 2887
                    if ((line.SPPID.END_X - line.SPPID.START_X) * (isReverseX ? 1 : -1) <= 0)
2890 2888
                    {
2891
                        GridSetting grid = GridSetting.GetInstance();
2892
                        line.SPPID.START_X = line.SPPID.END_X + (grid.Length * (!isReverseX ? 1 : -1));
2889
                        line.SPPID.START_X = line.SPPID.END_X - (GridSetting.GetInstance().Length * (!isReverseX ? 1 : -1));
2893 2890
                    }
2894 2891
                }
2895 2892
                else if (line.SlopeType == SlopeType.VERTICAL && changeOtherCoordinate)
......
2898 2895
                    // END_Y가 START_Y 값을 벗어날 경우 START_Y 값 보정
2899 2896
                    if ((line.SPPID.END_Y - line.SPPID.START_Y) * (isReverseY ? 1 : -1) <= 0)
2900 2897
                    {
2901
                        GridSetting grid = GridSetting.GetInstance();
2902
                        line.SPPID.START_Y = line.SPPID.END_Y + (grid.Length * (!isReverseY ? 1 : -1));
2898
                        line.SPPID.START_Y = line.SPPID.END_Y - (GridSetting.GetInstance().Length * (!isReverseY ? 1 : -1));
2903 2899
                    }
2904 2900
                }
2905 2901
            }

내보내기 Unified diff

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