Commit dfe2e95
Restore PrecisionRectangle substitutability for Rectangle
Recent changes to PrecisionRectangle adapted how the integer-based
size values are calculated, which introduced inconsistencies with other
operations and data (such as the relation between bottom-right and
top-left corner of a rectangle) and which may also break existing
consumers due to the changed behavior of API methods.
This change reverts the changes to the necessary extent such that the
existing behavior is restored. It also adds tests for some of the
scenarios that broke with the changes.1 parent a878942 commit dfe2e95
File tree
3 files changed
+26
-11
lines changed- org.eclipse.draw2d.tests/src/org/eclipse/draw2d/test
- org.eclipse.draw2d/src/org/eclipse/draw2d/geometry
3 files changed
+26
-11
lines changedLines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
150 | 160 | | |
151 | 161 | | |
152 | 162 | | |
| |||
155 | 165 | | |
156 | 166 | | |
157 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
158 | 177 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
955 | | - | |
956 | | - | |
957 | | - | |
| 955 | + | |
958 | 956 | | |
959 | 957 | | |
960 | | - | |
| 958 | + | |
961 | 959 | | |
962 | 960 | | |
963 | 961 | | |
| |||
1025 | 1023 | | |
1026 | 1024 | | |
1027 | 1025 | | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
| 1026 | + | |
1031 | 1027 | | |
1032 | 1028 | | |
1033 | | - | |
| 1029 | + | |
1034 | 1030 | | |
1035 | 1031 | | |
1036 | 1032 | | |
| |||
0 commit comments