Changeset 14967 in josm


Ignore:
Timestamp:
2019-04-07T09:12:08+02:00 (5 years ago)
Author:
GerdP
Message:

see #17569 improve warning message
Warn "Cannot add a node outside of the world." instead of "Those nodes are not in a circle. Aborting."

File:
1 edited

Legend:

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

    r14960 r14967  
    215215                LatLon ll = ProjectionRegistry.getProjection().eastNorth2latlon(new EastNorth(x, y));
    216216                if (new Node(new EastNorth(x, y)).isOutSideWorld()) {
    217                     notifyNodesNotOnCircle();
     217                    notifyNodesOutsideWorld();
    218218                    return;
    219219                }
     
    285285    }
    286286
     287    private static void notifyNodesOutsideWorld() {
     288        new Notification(tr("Cannot add a node outside of the world."))
     289        .setIcon(JOptionPane.WARNING_MESSAGE)
     290        .show();
     291    }
     292
    287293    @Override
    288294    protected void updateEnabledState() {
Note: See TracChangeset for help on using the changeset viewer.