Changeset 11893 in josm for trunk/src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2017-04-13T01:08:58+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
r11878 r11893 380 380 } else if (!user.equals(other.user)) 381 381 return false; 382 if (commentsCount != other.commentsCount) { 383 return false; 384 } 385 return true; 382 return commentsCount == other.commentsCount; 386 383 } 387 384 -
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r11608 r11893 1152 1152 if (!isNew() && id != other.id) 1153 1153 return false; 1154 if (isIncomplete() ^ other.isIncomplete()) // exclusive or operator for performance (see #7159) 1155 return false; 1156 return true; 1154 return !(isIncomplete() ^ other.isIncomplete()); // exclusive or operator for performance (see #7159) 1157 1155 } 1158 1156 -
trunk/src/org/openstreetmap/josm/data/osm/WaySegment.java
r11397 r11893 121 121 */ 122 122 public boolean isSimilar(WaySegment s2) { 123 if (getFirstNode().equals(s2.getFirstNode()) && getSecondNode().equals(s2.getSecondNode())) 124 return true; 125 if (getFirstNode().equals(s2.getSecondNode()) && getSecondNode().equals(s2.getFirstNode())) 126 return true; 127 return false; 123 return (getFirstNode().equals(s2.getFirstNode()) && getSecondNode().equals(s2.getSecondNode())) 124 || (getFirstNode().equals(s2.getSecondNode()) && getSecondNode().equals(s2.getFirstNode())); 128 125 } 129 126 -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r11870 r11893 1454 1454 if (bounds.isEmpty()) return false; 1455 1455 MapViewPoint p = mapState.getPointFor(new EastNorth(bounds.getX(), bounds.getY())); 1456 if (p.getInViewX() > mapState.getViewWidth()) return false; 1457 if (p.getInViewY() < 0) return false; 1456 if (p.getInViewY() < 0 || p.getInViewX() > mapState.getViewWidth()) return false; 1458 1457 p = mapState.getPointFor(new EastNorth(bounds.getX() + bounds.getWidth(), bounds.getY() + bounds.getHeight())); 1459 if (p.getInViewX() < 0) return false; 1460 if (p.getInViewY() > mapState.getViewHeight()) return false; 1461 return true; 1462 } 1463 1458 return p.getInViewX() >= 0 && p.getInViewY() <= mapState.getViewHeight(); 1459 } 1460 1461 /** 1462 * Determines if the paint visitor shall render OSM objects such that they look inactive. 1463 * @return {@code true} if the paint visitor shall render OSM objects such that they look inactive 1464 */ 1464 1465 public boolean isInactiveMode() { 1465 1466 return isInactiveMode;
Note:
See TracChangeset
for help on using the changeset viewer.