Changeset 2502 in josm for trunk/src


Ignore:
Timestamp:
2009-11-22T17:37:48+01:00 (15 years ago)
Author:
Gubaer
Message:

fixed #4007: Deleting/removing value of a key does not remove the key, but should

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java

    r2115 r2502  
    8686        TagModel tag = tags.get(rowIndex);
    8787        switch(columnIndex) {
    88             case 0:
    89             case 1: return tag;
    90 
    91             default:
    92                 throw new IndexOutOfBoundsException("unexpected columnIndex: columnIndex=" + columnIndex);
    93         }
    94     }
    95 
     88        case 0:
     89        case 1: return tag;
     90
     91        default:
     92            throw new IndexOutOfBoundsException("unexpected columnIndex: columnIndex=" + columnIndex);
     93        }
     94    }
    9695
    9796    /**
     
    342341            //
    343342            if (tag.getName().trim().equals("")) {
     343                continue;
     344            }
     345            // tag has an empty value => don't apply the tag
     346            //
     347            if (tag.getValue().trim().equals("")) {
    344348                continue;
    345349            }
Note: See TracChangeset for help on using the changeset viewer.