Changeset 8342 in josm for trunk/src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2015-05-09T12:49:35+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/User.java
r8155 r8342 228 228 if (names.size() == 1) { 229 229 s.append(" name:").append(getName()); 230 } 231 else if (names.size() > 1) { 230 } else if (names.size() > 1) { 232 231 s.append(String.format(" %d names:%s", names.size(), getName())); 233 232 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/LineClip.java
r7040 r8342 72 72 accept = true; 73 73 done = true; 74 } 75 else if ( (outcode0 & outcode1) > 0 ) { 74 } else if ( (outcode0 & outcode1) > 0 ) { 76 75 done = true; 77 } 78 else { 76 } else { 79 77 long x = 0, y = 0; 80 78 outcodeOut = outcode0 != 0 ? outcode0: outcode1; … … 82 80 x = x1 + (x2 - x1) * (ymax - y1)/(y2 - y1); 83 81 y = ymax; 84 } 85 else if ((outcodeOut & OUT_BOTTOM) > 0 ) { 82 } else if ((outcodeOut & OUT_BOTTOM) > 0 ) { 86 83 x = x1 + (x2 - x1) * (ymin - y1)/(y2 - y1); 87 84 y = ymin; 88 } 89 else if ((outcodeOut & OUT_RIGHT)> 0) { 85 } else if ((outcodeOut & OUT_RIGHT)> 0) { 90 86 y = y1 + (y2 - y1) * (xmax - x1)/(x2 - x1); 91 87 x = xmax; 92 } 93 else if ((outcodeOut & OUT_LEFT) > 0) { 88 } else if ((outcodeOut & OUT_LEFT) > 0) { 94 89 y = y1 + (y2 - y1) * (xmin - x1)/(x2 - x1); 95 90 x = xmin; … … 124 119 if (y > ymax) { 125 120 code |= OUT_TOP; 126 } 127 else if (y < ymin) { 121 } else if (y < ymin) { 128 122 code |= OUT_BOTTOM; 129 123 } 130 124 if (x > xmax) { 131 125 code |= OUT_RIGHT; 132 } 133 else if (x < xmin) { 126 } else if (x < xmin) { 134 127 code |= OUT_LEFT; 135 128 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r8318 r8342 946 946 947 947 Node viaNode; 948 if(via instanceof Node) 949 { 948 if(via instanceof Node) { 950 949 viaNode = (Node) via; 951 950 if(!fromWay.isFirstLastNode(viaNode)) 952 951 return; 953 } 954 else 955 { 952 } else { 956 953 Way viaWay = (Way) via; 957 954 Node firstNode = viaWay.firstNode(); … … 960 957 961 958 String onewayviastr = viaWay.get("oneway"); 962 if(onewayviastr != null) 963 { 959 if(onewayviastr != null) { 964 960 if("-1".equals(onewayviastr)) { 965 961 onewayvia = true;
Note:
See TracChangeset
for help on using the changeset viewer.