Changeset 3138 in josm


Ignore:
Timestamp:
2010-03-15T16:05:34+01:00 (14 years ago)
Author:
Gubaer
Message:

Cosmetics

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetTagsPanel.java

    r3083 r3138  
    4141
    4242    protected void init(Changeset cs) {
    43         model.clear();
    44         if (cs == null)
     43        if (cs == null) {
     44            model.clear();
    4545            return;
     46        }
    4647        model.initFromTags(cs.getKeys());
    4748    }
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagEditorModel.java

    r3137 r3138  
    303303     */
    304304    public void initFromPrimitive(Tagged primitive) {
    305         clear();
     305        this.tags.clear();
    306306        for (String key : primitive.keySet()) {
    307307            String value = primitive.get(key);
     
    320320     */
    321321    public void initFromTags(Map<String,String> tags) {
    322         clear();
     322        this.tags.clear();
    323323        for (String key : tags.keySet()) {
    324324            String value = tags.get(key);
     
    338338     */
    339339    public void initFromTags(TagCollection tags) {
    340         clear();
     340        this.tags.clear();
    341341        if (tags == null){
    342342            setDirty(false);
Note: See TracChangeset for help on using the changeset viewer.