Changeset 17828 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-04-26T20:42:29+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r17793 r17828 60 60 /** The image currently displayed */ 61 61 private transient BufferedImage image; 62 63 /** The image currently displayed after applying {@link #imageProcessor} */ 64 private transient BufferedImage processedImage; 62 65 63 66 /** … … 380 383 381 384 ImageDisplay.this.image = img; 385 updateProcessedImage(); 382 386 // This will clear the loading info box 383 387 ImageDisplay.this.oldEntry = ImageDisplay.this.entry; … … 745 749 if (entry == null) { 746 750 image = null; 751 updateProcessedImage(); 747 752 this.oldEntry = null; 748 753 } … … 778 783 @Override 779 784 public void filterChanged() { 785 updateProcessedImage(); 780 786 repaint(); 787 } 788 789 private void updateProcessedImage() { 790 processedImage = image == null ? null : imageProcessor.process(image); 781 791 } 782 792 … … 790 800 791 801 synchronized (this) { 792 image = this. image;802 image = this.processedImage; 793 803 entry = this.entry; 794 804 oldEntry = this.oldEntry; … … 840 850 } 841 851 842 if (image != null) {843 image = imageProcessor.process(image);844 }845 846 852 g.drawImage(image, 847 853 target.x, target.y, target.x + target.width, target.y + target.height,
Note:
See TracChangeset
for help on using the changeset viewer.