Ignore:
Timestamp:
2015-11-25T01:21:14+01:00 (10 years ago)
Author:
Don-vip
Message:

Sonar - squid:S1941 - Variables should not be declared before they are relevant

File:
1 edited

Legend:

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

    r8308 r9062  
    6868        }
    6969        Main.map.selectMapMode(Main.map.mapModeSelect);
    70         LatLon latlon = Main.map.mapView.getLatLon(e.getPoint().x, e.getPoint().y);
    7170
    7271        NoteInputDialog dialog = new NoteInputDialog(Main.parent, tr("Create new note"), tr("Create note"));
     
    7978        String input = dialog.getInputText();
    8079        if (input != null && !input.isEmpty()) {
     80            LatLon latlon = Main.map.mapView.getLatLon(e.getPoint().x, e.getPoint().y);
    8181            noteData.createNote(latlon, input);
    8282        } else {
Note: See TracChangeset for help on using the changeset viewer.