- Timestamp:
- 2022-06-28T23:19:33+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r18263 r18503 698 698 IImageViewer currentImageViewer; 699 699 BufferedImage currentImage; 700 VisRect currentVisibleRect;701 700 boolean currentErrorLoading; 702 701 … … 705 704 currentEntry = this.entry; 706 705 currentOldEntry = this.oldEntry; 707 currentVisibleRect = this.visibleRect;708 706 currentErrorLoading = this.errorLoading; 709 707 } … … 717 715 if (currentImage != null && (currentEntry != null || currentOldEntry != null)) { 718 716 currentImageViewer = this.getIImageViewer(currentEntry); 717 // This must be after the getIImageViewer call, since we may be switching image viewers. This is important, 718 // since an image viewer on switch may change the visible rectangle. 719 VisRect currentVisibleRect; 720 synchronized (this) { 721 currentVisibleRect = this.visibleRect; 722 } 719 723 Rectangle r = new Rectangle(currentVisibleRect); 720 724 Rectangle target = calculateDrawImageRectangle(currentVisibleRect, size);
Note:
See TracChangeset
for help on using the changeset viewer.