Changeset 11809 in josm for trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
- Timestamp:
- 2017-04-01T01:23:56+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r11713 r11809 231 231 232 232 private BoundingXYVisitor getBoundingBox() { 233 BoundingXYVisitor v = "problem".equals(mode) ? new ValidatorBoundingXYVisitor() : new BoundingXYVisitor();234 235 233 switch (mode) { 236 234 case "problem": 237 return modeProblem( (ValidatorBoundingXYVisitor) v);235 return modeProblem(new ValidatorBoundingXYVisitor()); 238 236 case "data": 239 return modeData( v);237 return modeData(new BoundingXYVisitor()); 240 238 case "layer": 241 return modeLayer( v);239 return modeLayer(new BoundingXYVisitor()); 242 240 case "selection": 243 241 case "conflict": 244 return modeSelectionOrConflict( v);242 return modeSelectionOrConflict(new BoundingXYVisitor()); 245 243 case "download": 246 return modeDownload( v);244 return modeDownload(new BoundingXYVisitor()); 247 245 default: 248 return v;246 return new BoundingXYVisitor(); 249 247 } 250 248 }
Note:
See TracChangeset
for help on using the changeset viewer.