Changeset 3118 in josm
- Timestamp:
- 2010-03-11T21:20:58+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r3116 r3118 182 182 // Layers that wasn't changed since last paint 183 183 private final List<Layer> nonChangedLayers = new ArrayList<Layer>(); 184 private int lastViewID; 184 185 185 186 public MapView() { … … 471 472 } 472 473 473 boolean canUseBuffer = nonChangedLayers.size() <= nonChangedLayersCount ;474 boolean canUseBuffer = nonChangedLayers.size() <= nonChangedLayersCount && lastViewID == getViewID(); 474 475 if (canUseBuffer) { 475 476 for (int i=0; i<nonChangedLayers.size(); i++) { … … 509 510 nonChangedLayers.add(visibleLayers.get(i)); 510 511 } 512 lastViewID = getViewID(); 511 513 512 514 tempG.drawImage(offscreenBuffer, 0, 0, null); -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r3116 r3118 91 91 private boolean isChanged = true; 92 92 private int highlightUpdateCount; 93 private int viewId;94 93 95 94 protected void setRequiresSaveToFile(boolean newValue) { … … 226 225 isChanged = false; 227 226 highlightUpdateCount = data.getHighlightUpdateCount(); 228 viewId = Main.map.mapView.getViewID();229 227 230 228 boolean active = mv.getActiveLayer() == this; … … 726 724 @Override 727 725 public boolean isChanged() { 728 return isChanged || highlightUpdateCount != data.getHighlightUpdateCount() || viewId != Main.map.mapView.getViewID();726 return isChanged || highlightUpdateCount != data.getHighlightUpdateCount(); 729 727 } 730 728
Note:
See TracChangeset
for help on using the changeset viewer.