Changeset 11953 in josm for trunk/src/org
- Timestamp:
- 2017-04-19T00:11:05+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r11950 r11953 722 722 @Override 723 723 public void zoomChanged() { 724 zoomChanged(true); 725 } 726 727 private void zoomChanged(boolean invalidate) { 724 728 if (Main.isDebugEnabled()) { 725 729 Main.debug("zoomChanged(): " + currentZoomLevel); … … 728 732 ((TMSCachedTileLoader) tileLoader).cancelOutstandingTasks(); 729 733 } 730 invalidate(); 734 if (invalidate) { 735 invalidate(); 736 } 731 737 } 732 738 … … 783 789 */ 784 790 public boolean setZoomLevel(int zoom) { 791 return setZoomLevel(zoom, true); 792 } 793 794 private boolean setZoomLevel(int zoom, boolean invalidate) { 785 795 if (zoom == currentZoomLevel) return true; 786 796 if (zoom > this.getMaxZoomLvl()) return false; 787 797 if (zoom < this.getMinZoomLvl()) return false; 788 798 currentZoomLevel = zoom; 789 zoomChanged( );799 zoomChanged(invalidate); 790 800 return true; 791 801 } … … 1428 1438 } 1429 1439 1430 setZoomLevel(zoom );1440 setZoomLevel(zoom, false); 1431 1441 1432 1442 // If all tiles at displayZoomLevel is loaded, load all tiles at next zoom level … … 1446 1456 ts = dts.getTileSet(zoom); 1447 1457 } else if (getDisplaySettings().isAutoZoom()) { 1448 setZoomLevel(zoom );1458 setZoomLevel(zoom, false); 1449 1459 } 1450 1460
Note:
See TracChangeset
for help on using the changeset viewer.