Changeset 2771 in josm
- Timestamp:
- 2010-01-08T09:12:41+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetMenu.java
r2302 r2771 79 79 PresetTextComparator comp = new PresetTextComparator(); 80 80 ArrayList<JMenuItem> sortarray = new ArrayList<JMenuItem>(); 81 int lastSep erator = 0;81 int lastSeparator = 0; 82 82 for (int i = 0; i < items.length; i++) { 83 83 Object item = items[i]; … … 92 92 for (JMenuItem menuItem : sortarray) { 93 93 int oldPos; 94 if(lastSep erator == 0){94 if(lastSeparator == 0){ 95 95 oldPos=pos; 96 96 }else { 97 oldPos = pos+lastSep erator+1;97 oldPos = pos+lastSeparator+1; 98 98 } 99 99 menu.add(menuItem, oldPos); … … 101 101 } 102 102 sortarray = new ArrayList<JMenuItem>(); 103 lastSep erator = 0;103 lastSeparator = 0; 104 104 } 105 105 }else if (item instanceof JSeparator){ … … 108 108 for (JMenuItem menuItem : sortarray) { 109 109 int oldPos; 110 if(lastSep erator == 0){110 if(lastSeparator == 0){ 111 111 oldPos=pos; 112 112 }else { 113 oldPos = pos+lastSep erator+1;113 oldPos = pos+lastSeparator+1; 114 114 } 115 115 menu.add(menuItem, oldPos); … … 117 117 } 118 118 sortarray = new ArrayList<JMenuItem>(); 119 lastSep erator = i;119 lastSeparator = i; 120 120 } 121 121 } -
trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java
r2609 r2771 51 51 /** 52 52 * the max. number of primitives retrieved in one step. Assuming IDs with 7 digits, 53 * this leads to a max. request URL of ~ 1600 Bytes ((7 digits + 1 Seperator) * 200),53 * this leads to a max. request URL of ~ 1600 Bytes ((7 digits + 1 Separator) * 200), 54 54 * which should be safe according to the 55 55 * <a href="http://www.boutell.com/newfaq/misc/urllength.html">WWW FAQ</a>.
Note:
See TracChangeset
for help on using the changeset viewer.