Changeset 1696 in josm for trunk/src/org
- Timestamp:
- 2009-06-27T01:06:24+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/MapPaintVisitor.java
r1695 r1696 833 833 for (Way w : outer) 834 834 { 835 if(wayStyle == null || !(wayStyle instanceof AreaElemStyle))836 wayStyle = styles.get (w);835 if(wayStyle == null) 836 wayStyle = styles.getArea(w); 837 837 } 838 838 r.mappaintStyle = wayStyle; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r1690 r1696 366 366 if (way1 != null) { 367 367 int next = i+1; 368 while (next < clone.members.size()) { 369 m = clone.members.get(next++); 368 while (next <= clone.members.size()) { 369 m = clone.members.get(next == clone.members.size() ? 0 : next); 370 next++; 370 371 depth = 0; 371 372 while (m != null && depth < 10) { -
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r1695 r1696 126 126 } 127 127 128 public ElemStyle getArea(Way osm) 129 { 130 if(osm.keys != null) 131 { 132 /* force area mode also for unclosed ways */ 133 ElemStyle style = get(osm.keys, false); 134 if(style != null && style instanceof AreaElemStyle) 135 return style; 136 } 137 return null; 138 } 139 128 140 public IconElemStyle getIcon(OsmPrimitive osm) 129 141 { -
trunk/src/org/openstreetmap/josm/io/GpxImporter.java
r1637 r1696 6 6 import java.io.File; 7 7 import java.io.FileInputStream; 8 import java.io.FileNotFoundException; 8 9 import java.io.IOException; 9 10 import java.io.InputStream; … … 50 51 Main.main.addLayer(ml); 51 52 } 53 } catch (FileNotFoundException e) { 54 e.printStackTrace(); 55 throw new IOException(tr("File \"{0}\" does not exist", file.getName())); 52 56 } catch (SAXException e) { 53 57 e.printStackTrace(); 54 throw new IOException(tr(" Could not read \"{0}\"", file.getName()));58 throw new IOException(tr("Parsing file \"{0}\" failed", file.getName())); 55 59 } 56 57 60 } 58 59 61 } -
trunk/src/org/openstreetmap/josm/io/OsmImporter.java
r1653 r1696 38 38 } catch (FileNotFoundException e) { 39 39 e.printStackTrace(); 40 throw new IOException(tr(" Could not read \"{0}\"", file.getName()));40 throw new IOException(tr("File \"{0}\" does not exist", file.getName())); 41 41 } catch (SAXException e) { 42 42 e.printStackTrace(); 43 throw new IOException(tr(" Could not read \"{0}\"", file.getName()));43 throw new IOException(tr("Parsing file \"{0}\" failed", file.getName())); 44 44 } 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.