Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r8444 r8510 91 91 } 92 92 93 synchronized (ImageDisplay.this) {93 synchronized (ImageDisplay.this) { 94 94 if (this.file != ImageDisplay.this.file) { 95 95 // The file has changed … … 206 206 checkVisibleRectPos(image, visibleRect); 207 207 208 synchronized (ImageDisplay.this) {208 synchronized (ImageDisplay.this) { 209 209 if (ImageDisplay.this.file == file) { 210 210 ImageDisplay.this.visibleRect = visibleRect; … … 243 243 checkVisibleRectPos(image, visibleRect); 244 244 245 synchronized (ImageDisplay.this) {245 synchronized (ImageDisplay.this) { 246 246 if (ImageDisplay.this.file == file) { 247 247 ImageDisplay.this.visibleRect = visibleRect; … … 314 314 visibleRect.y += mousePointInImg.y - p.y; 315 315 checkVisibleRectPos(image, visibleRect); 316 synchronized (ImageDisplay.this) {316 synchronized (ImageDisplay.this) { 317 317 if (ImageDisplay.this.file == file) { 318 318 ImageDisplay.this.visibleRect = visibleRect; … … 437 437 438 438 public void setImage(File file, Integer orientation) { 439 synchronized (this) {439 synchronized (this) { 440 440 this.file = file; 441 441 image = null; … … 461 461 boolean errorLoading; 462 462 463 synchronized (this) {463 synchronized (this) { 464 464 image = this.image; 465 465 file = this.file; … … 622 622 } 623 623 624 synchronized (this) {624 synchronized (this) { 625 625 if (file == this.file) { 626 626 this.visibleRect = visibleRect;
Note:
See TracChangeset
for help on using the changeset viewer.