Changeset 22504 in osm


Ignore:
Timestamp:
2010-07-31T02:01:08+02:00 (14 years ago)
Author:
pieren
Message:

Fix minor issues about the new ctrl modifier in addr helping tool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/Address.java

    r22387 r22504  
    147147                    Collection<Command> cmds = new LinkedList<Command>();
    148148                    addAddrToPrimitive(currentMouseNode, cmds);
    149                     applyInputNumberChange();
     149                    if (num == null)
     150                        applyInputNumberChange();
    150151                }
    151152                setSelectedWay((Way)null);
     
    155156                if (wayInRelationAddr == null) {
    156157                    // node exists but doesn't carry address information : add tags like a new node
     158                    if (ctrl) {
     159                        applyInputNumberChange();
     160                    }
    157161                    Collection<Command> cmds = new LinkedList<Command>();
    158162                    addAddrToPrimitive(currentMouseNode, cmds);
     
    182186                } else {
    183187                    Collection<Command> cmds = new LinkedList<Command>();
     188                    if (ctrl) {
     189                        applyInputNumberChange();
     190                    }
    184191                    if (tagPolygon.isSelected()) {
    185192                        addAddrToPolygon(mouseOnExistingBuildingWays, cmds);
     
    218225   
    219226    private void addAddrToPrimitive(OsmPrimitive osm, Collection<Command> cmds) {
    220         // add the current tag addr:housenumber in node and member in relation
     227        // add the current tag addr:housenumber in node and member in relation (if so configured)
    221228        if (shift) {
    222229            try {
Note: See TracChangeset for help on using the changeset viewer.