Changeset 5373 in josm


Ignore:
Timestamp:
Jul 28, 2012 2:42:43 PM (10 months ago)
Author:
Don-vip
Message:

fix indentation from previous commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DownloadPrimitiveAction.java

    r5372 r5373  
    319319        String buf = Utils.getClipboardContent(); 
    320320        if (buf != null) { 
    321                 if (buf.contains("node")) cbType.setSelectedIndex(0); 
    322                 if (buf.contains("way")) cbType.setSelectedIndex(1); 
    323                 if (buf.contains("relation")) cbType.setSelectedIndex(2); 
    324                 String[] res = buf.split("/"); 
    325                 String txt; 
    326                 if (res.length>0) { 
    327                     txt = res[res.length-1]; 
    328                     if (txt.isEmpty() && txt.length()>1) txt=res[res.length-2]; 
    329                 } else { 
    330                     txt=buf; 
    331                 } 
    332                 tfId.setText(txt); 
    333                 tfId.clearTextIfInvalid(); 
     321            if (buf.contains("node")) cbType.setSelectedIndex(0); 
     322            if (buf.contains("way")) cbType.setSelectedIndex(1); 
     323            if (buf.contains("relation")) cbType.setSelectedIndex(2); 
     324            String[] res = buf.split("/"); 
     325            String txt; 
     326            if (res.length>0) { 
     327                txt = res[res.length-1]; 
     328                if (txt.isEmpty() && txt.length()>1) txt=res[res.length-2]; 
     329            } else { 
     330                txt=buf; 
     331            } 
     332            tfId.setText(txt); 
     333            tfId.clearTextIfInvalid(); 
    334334        } 
    335335    } 
Note: See TracChangeset for help on using the changeset viewer.