Changeset 16671 in josm


Ignore:
Timestamp:
2020-06-17T15:08:38+02:00 (3 weeks ago)
Author:
stoecker
Message:

fix #19402 - fix race condition in auto follow function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r16630 r16671  
    758758            try {
    759759                for (int i = 0; i < frames && !doStop; i++) {
    760                     zoomTo(oldCenter.interpolate(finalNewCenter, (1.0+i) / frames));
     760                    final EastNorth z = oldCenter.interpolate(finalNewCenter, (1.0+i) / frames);
     761                    GuiHelper.runInEDTAndWait(() -> {
     762                        zoomTo(z);
     763                    });
    761764                    Thread.sleep(sleepTime);
    762765                }
Note: See TracChangeset for help on using the changeset viewer.