Changeset 3167 in josm
- Timestamp:
- 2010-04-05T20:52:04+02:00 (15 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.classpath
r2926 r3167 4 4 <classpathentry kind="src" path="test/unit"/> 5 5 <classpathentry kind="src" path="test/functional"/> 6 <classpathentry excluding="build/|dist/|src/|test/|test/build/|test/functional/|test/unit/" including="CONTRIBUTION|LICENSE|README|data/|images/|presets/|styles/" kind="src" path=""/> 6 <classpathentry excluding="build/|data_nodist/|dist/|doc/|lib/|macosx/|src/|test/|test/build/|test/functional/|test/performance/|test/unit/|tools/|utils/" kind="src" path=""/> 7 <classpathentry kind="src" path="test/performance"/> 7 8 <classpathentry kind="lib" path="lib/metadata-extractor-2.3.1-nosun.jar"/> 8 9 <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> … … 17 18 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 18 19 <classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/> 19 <classpathentry kind="lib" path="test/build"/>20 20 <classpathentry kind="lib" path="lib/signpost-core-1.1.jar"/> 21 21 <classpathentry kind="output" path="bin"/> -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPaintVisitor.java
r3102 r3167 17 17 import java.util.Comparator; 18 18 import java.util.LinkedList; 19 import java.util.List;20 19 21 20 import org.openstreetmap.josm.Main; … … 645 644 BBox bbox = new BBox(bounds); 646 645 this.data = data; 646 ++paintid; 647 647 648 648 useStyleCache = Main.pref.getBoolean("mappaint.cache", true); … … 653 653 654 654 zoomLevelDisplay = Main.pref.getBoolean("mappaint.zoomLevelDisplay", false); 655 circum = Main.map.mapView.getDist100Pixel();655 circum = nc.getDist100Pixel(); 656 656 styles = MapPaintStyles.getStyles().getStyleSet(); 657 657 drawMultipolygon = Main.pref.getBoolean("mappaint.multipolygon", true); … … 670 670 data.clearErrors(); 671 671 672 ++paintid;673 672 674 673 if (fillAreas > dist && styles != null && styles.hasAreas()) { 675 674 Collection<Way> noAreaWays = new LinkedList<Way>(); 676 675 677 List<Relation> relations = data.searchRelations(bbox);678 676 /*** RELATIONS ***/ 679 677 for (final Relation osm: data.searchRelations(bbox)) { … … 709 707 710 708 /*** WAYS (filling disabled) ***/ 711 for (final Way way: data. getWays()) {709 for (final Way way: data.searchWays(bbox)) { 712 710 if (way.isDrawable() && !data.isSelected(way)) { 713 711 drawWay(way, 0); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/MapPainter.java
r3083 r3167 185 185 186 186 int w = icon.getIconWidth(), h=icon.getIconHeight(); 187 icon.paintIcon ( Main.map.mapView, g, p.x-w/2, p.y-h/2 );187 icon.paintIcon ( nc, g, p.x-w/2, p.y-h/2 ); 188 188 if(name != null) { 189 189 if (inactive || n.isDisabled()) {
Note:
See TracChangeset
for help on using the changeset viewer.