Revision 41229 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.impl/src/main/java/org/gvsig/fmap/geom/primitive/impl/Envelope2D.java
Envelope2D.java | ||
---|---|---|
143 | 143 |
// X |
144 | 144 |
if (sample_trans.getX() > res_max.getX()) { |
145 | 145 |
res_max.setLocation(sample_trans.getX(), res_max.getY()); |
146 |
} else { |
|
147 |
if (sample_trans.getX() < res_min.getX()) { |
|
148 |
res_min.setLocation(sample_trans.getX(), res_min.getY()); |
|
149 |
} |
|
150 | 146 |
} |
147 |
if (sample_trans.getX() < res_min.getX()) { |
|
148 |
res_min.setLocation(sample_trans.getX(), res_min.getY()); |
|
149 |
} |
|
151 | 150 |
// Y |
152 | 151 |
if (sample_trans.getY() > res_max.getY()) { |
153 | 152 |
res_max.setLocation(res_max.getX(), sample_trans.getY()); |
154 |
} else { |
|
155 |
if (sample_trans.getY() < res_min.getY()) { |
|
156 |
res_min.setLocation(res_min.getX(), sample_trans.getY()); |
|
157 |
} |
|
158 | 153 |
} |
154 |
if (sample_trans.getY() < res_min.getY()) { |
|
155 |
res_min.setLocation(res_min.getX(), sample_trans.getY()); |
|
156 |
} |
|
159 | 157 |
added++; |
160 | 158 |
} |
161 | 159 |
} |
Also available in: Unified diff