Changeset 10879 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-08-23T20:34:14+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r10853 r10879 122 122 private boolean requiresSaveToFile; 123 123 private boolean requiresUploadToServer; 124 private boolean isChanged = true;125 124 private int highlightUpdateCount; 126 125 … … 391 390 */ 392 391 @Override public void paint(final Graphics2D g, final MapView mv, Bounds box) { 393 isChanged = false;394 392 highlightUpdateCount = data.getHighlightUpdateCount(); 395 393 … … 895 893 @Override 896 894 public boolean isChanged() { 897 return isChanged ||highlightUpdateCount != data.getHighlightUpdateCount();895 return highlightUpdateCount != data.getHighlightUpdateCount(); 898 896 } 899 897 … … 949 947 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 950 948 invalidate(); 951 }952 953 @Override954 public void invalidate() {955 isChanged = true;956 super.invalidate();957 949 } 958 950
Note:
See TracChangeset
for help on using the changeset viewer.