Changeset 12477 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-07-13T23:15:13+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/CompletelyInsideAreaStrategy.java
r12476 r12477 111 111 return this; 112 112 } else { 113 return new CompletelyInsideAreaStrategy(offsetX + addToOffset.getX(), offsetY +addToOffset.getY());113 return new CompletelyInsideAreaStrategy(offsetX + addToOffset.getX(), offsetY - addToOffset.getY()); 114 114 } 115 115 } … … 145 145 CompletelyInsideAreaStrategy other = (CompletelyInsideAreaStrategy) obj; 146 146 return Double.doubleToLongBits(offsetX) == Double.doubleToLongBits(other.offsetX) 147 && Double.doubleToLongBits(offsetY) != Double.doubleToLongBits(other.offsetY);147 && Double.doubleToLongBits(offsetY) == Double.doubleToLongBits(other.offsetY); 148 148 } 149 149 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/OnLineStrategy.java
r12476 r12477 339 339 return this; 340 340 } else { 341 return new OnLineStrategy( addToOffset.getY() + this.yOffset);341 return new OnLineStrategy(this.yOffset - addToOffset.getY()); 342 342 } 343 343 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/placement/PartiallyInsideAreaStrategy.java
r12476 r12477 52 52 return this; 53 53 } else { 54 return new PartiallyInsideAreaStrategy(offsetX + addToOffset.getX(), offsetY +addToOffset.getY());54 return new PartiallyInsideAreaStrategy(offsetX + addToOffset.getX(), offsetY - addToOffset.getY()); 55 55 } 56 56 }
Note:
See TracChangeset
for help on using the changeset viewer.