개정판 3f3f05af
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