Changeset 15484 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2019-10-29T20:33:16+01:00 (5 years ago)
Author:
Don-vip
Message:

fix compile error added in r15481

File:
1 edited

Legend:

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

    r15481 r15484  
    745745            final int maxtime = Config.getPref().getInt("smooth.scroll.maxtime", 5000); // milliseconds maximum scroll time
    746746            final double distance = newCenter.distance(oldCenter) / getScale();
    747             final double milliseconds = distance / getWidth() * speed;
     747            double milliseconds = distance / getWidth() * speed;
    748748            if (milliseconds > maxtime) { // prevent overlong scroll time, speed up if necessary
    749749                milliseconds = maxtime;
Note: See TracChangeset for help on using the changeset viewer.