Changeset 10378 in josm for trunk/src/org/openstreetmap/josm/gui/MapView.java
- Timestamp:
- 2016-06-15T10:30:37+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r10375 r10378 564 564 public void rememberLastPositionOnScreen() { 565 565 oldSize = getSize(); 566 oldLoc 566 oldLoc = getLocationOnScreen(); 567 567 } 568 568 … … 949 949 // if the position was remembered, we need to adjust center once before repainting 950 950 if (oldLoc != null && oldSize != null) { 951 Point l1 951 Point l1 = getLocationOnScreen(); 952 952 final EastNorth newCenter = new EastNorth( 953 953 getCenter().getX()+ (l1.x-oldLoc.x - (oldSize.width-getWidth())/2.0)*getScale(),
Note:
See TracChangeset
for help on using the changeset viewer.