Changeset 7028 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2014-04-29T15:49:32+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java
r7012 r7028 452 452 453 453 String zoom = SystemOfMeasurement.METRIC.getDistText(ll1.greatCircleDistance(ll2)); 454 String extension; 455 switch(mimeType) { 456 case "image/jpeg": 457 case "image/jpg": 458 extension = "jpg"; 459 break; 460 case "image/png": 461 extension = "png"; 462 break; 463 case "image/gif": 464 extension = "gif"; 465 break; 466 default: 467 extension = "dat"; 454 String extension = "dat"; 455 if (mimeType != null) { 456 switch(mimeType) { 457 case "image/jpeg": 458 case "image/jpg": 459 extension = "jpg"; 460 break; 461 case "image/png": 462 extension = "png"; 463 break; 464 case "image/gif": 465 extension = "gif"; 466 break; 467 default: 468 Main.warn("Unrecognized MIME type: "+mimeType); 469 } 468 470 } 469 471
Note:
See TracChangeset
for help on using the changeset viewer.