Changeset 11542 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
- Timestamp:
- 2017-02-07T22:00:43+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java
r11144 r11542 33 33 import org.openstreetmap.josm.data.osm.Way; 34 34 import org.openstreetmap.josm.data.osm.WaySegment; 35 import org.openstreetmap.josm.data.osm.visitor.paint.PaintColors;36 35 import org.openstreetmap.josm.data.preferences.AbstractToStringProperty; 37 36 import org.openstreetmap.josm.data.preferences.BooleanProperty; … … 106 105 private static final CachingProperty<Double> SNAP_DISTANCE_CHINESE = new DoubleProperty(prefKey("snap-distance-chinese"), 1).cached(); 107 106 private static final CachingProperty<Double> SNAP_DISTANCE_NAUTICAL = new DoubleProperty(prefKey("snap-distance-nautical"), 0.1).cached(); 108 private static final CachingProperty<Color> MAIN_COLOR = new ColorProperty(marktr("make parallel helper line"), (Color) null).cached();107 private static final CachingProperty<Color> MAIN_COLOR = new ColorProperty(marktr("make parallel helper line"), Color.RED).cached(); 109 108 110 109 private static final CachingProperty<Map<Modifier, Boolean>> SNAP_MODIFIER_COMBO … … 461 460 462 461 Color mainColor = MAIN_COLOR.get(); 463 if (mainColor == null) {464 mainColor = PaintColors.SELECTED.get();465 }466 467 462 // FIXME: should clip the line (gets insanely slow when zoomed in on a very long line 468 463 g.setStroke(REF_LINE_STROKE.get());
Note:
See TracChangeset
for help on using the changeset viewer.
