Ignore:
Timestamp:
13.02.2010 17:45:10 (2 years ago)
Author:
Gubaer
Message:

fixed #4506: relation-editor: tag-delete-button does not work
removed duplicated code
fixed selection behaviour for tags tag in RelationEditor and UploadDialog

File:
1 edited

Legend:

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

    r2960 r2974  
    147147                if (item instanceof TaggingPreset.Check) { 
    148148                    TaggingPreset.Check ch = (TaggingPreset.Check) item; 
    149                     if (ch.key == null) continue; 
     149                    if (ch.key == null) { 
     150                        continue; 
     151                    } 
    150152                    presetTagCache.put(ch.key, OsmUtils.falseval); 
    151153                    presetTagCache.put(ch.key, OsmUtils.trueval); 
    152154                } else if (item instanceof TaggingPreset.Combo) { 
    153155                    TaggingPreset.Combo co = (TaggingPreset.Combo) item; 
    154                     if (co.key == null || co.values == null) continue; 
     156                    if (co.key == null || co.values == null) { 
     157                        continue; 
     158                    } 
    155159                    for (String value : co.values.split(",")) { 
    156160                        presetTagCache.put(co.key, value); 
     
    158162                } else if (item instanceof TaggingPreset.Key) { 
    159163                    TaggingPreset.Key ky = (TaggingPreset.Key) item; 
    160                     if (ky.key == null || ky.value == null) continue; 
     164                    if (ky.key == null || ky.value == null) { 
     165                        continue; 
     166                    } 
    161167                    presetTagCache.put(ky.key, ky.value); 
    162168                } else if (item instanceof TaggingPreset.Text) { 
    163169                    TaggingPreset.Text tt = (TaggingPreset.Text) item; 
    164                     if (tt.key == null) continue; 
     170                    if (tt.key == null) { 
     171                        continue; 
     172                    } 
    165173                    presetTagCache.putVoid(tt.key); 
    166174                    if (tt.default_ != null && !tt.default_.equals("")) { 
     
    171179        } 
    172180    } 
    173      
     181 
    174182    /** 
    175183     * replies the keys held by the cache 
Note: See TracChangeset for help on using the changeset viewer.