Changeset 34104 in osm for applications/editors


Ignore:
Timestamp:
2018-03-25T05:11:54+02:00 (7 years ago)
Author:
donvip
Message:

code optim

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/StoreImageryOffsetAction.java

    r33774 r34104  
    7474            if (selectedObjects.size() == 1) {
    7575                OsmPrimitive selection = selectedObjects.iterator().next();
    76                 if ((selection instanceof Node || selection instanceof Way) && !selection.isIncomplete() && !selection.isReferredByWays(1)) {
     76                if (!selection.isIncomplete() && (selection instanceof Way ||
     77                        (selection instanceof Node && !((Node) selection).isReferredByWays(1)))) {
    7778                    String[] options = new String[] {tr("Store calibration geometry"), tr("Store imagery offset")};
    7879                    int result = JOptionPane.showOptionDialog(Main.parent,
Note: See TracChangeset for help on using the changeset viewer.