Changeset 22537 in osm for applications/editors/josm/plugins/toms
- Timestamp:
- 2010-08-02T14:13:32+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r22527 r22537 1209 1209 cbM01Kennung.addActionListener(new java.awt.event.ActionListener() { 1210 1210 public void actionPerformed(java.awt.event.ActionEvent e) { 1211 int i1, i2; 1212 String g = "", c = ""; 1211 1213 String it = (String) cbM01Kennung.getSelectedItem(); 1212 1214 … … 1220 1222 return; 1221 1223 } 1222 buoy.setLightChar(it); 1224 1225 i1 = it.indexOf("("); 1226 i2 = it.indexOf(")", i1); 1227 1228 if (i1 >= 0) { 1229 c = it.substring(0, i1); 1230 if (i1 >= 0) 1231 g = it.substring(i1 + 1, i2); 1232 } 1233 1234 if (it.contains("+")) { 1235 i1 = it.indexOf("+"); 1236 i2 = it.length(); 1237 if (c == "") 1238 c = it; 1239 else 1240 c = c + it.substring(i1, i2); 1241 } 1242 1243 if (c == "") 1244 c = it; 1245 buoy.setLightChar(c); 1246 buoy.setLightGroup(g); 1247 // buoy.setLightColour(); 1248 1223 1249 buoy.paintSign(); 1224 1250 }
Note:
See TracChangeset
for help on using the changeset viewer.