Changeset 1430 in josm


Ignore:
Timestamp:
2009-02-19T18:30:44+01:00 (16 years ago)
Author:
stoecker
Message:

fixed #2168. patch by xeen

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r1412 r1430  
    215215     */
    216216    public void eventDispatched(AWTEvent event) {
    217         if(!Main.map.mapView.isDrawableLayer())
     217        if(Main.map == null ||Main.map.mapView == null || !Main.map.mapView.isDrawableLayer())
    218218            return;
    219219        InputEvent e = (InputEvent) event;
     
    532532            return;
    533533        }
    534 
     534       
    535535        double distance = -1;
    536536        double angle = -1;
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r1263 r1430  
    44
    55import java.awt.Point;
     6import java.util.ArrayList;
    67import java.util.Collection;
    78import java.util.Collections;
    89import java.util.HashSet;
     10import java.util.LinkedList;
     11import java.util.List;
    912import java.util.TreeMap;
    10 import java.util.List;
    11 import java.util.ArrayList;
    12 import java.util.LinkedList;
    1313
    1414import javax.swing.JComponent;
     
    4646     * Center n/e coordinate of the desired screen center.
    4747     */
    48     protected EastNorth center;
     48    protected EastNorth center = new EastNorth(0, 0);
    4949
    5050    public NavigatableComponent() {
Note: See TracChangeset for help on using the changeset viewer.