Changeset 27146 in osm for applications/editors/josm/plugins
- Timestamp:
- 2011-11-25T11:57:27+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r27135 r27146 566 566 addLight(i); 567 567 if (sectors.size() > i) 568 sectors.get(i)[att] = obj; 568 switch (att) { 569 case 4: 570 case 8: 571 case 9: 572 case 10: 573 case 14: 574 sectors.get(i)[att] = validDecimal((String)obj); 575 break; 576 case 6: 577 case 7: 578 case 13: 579 sectors.get(i)[att] = validDecimal((String)obj, 360); 580 break; 581 default: 582 sectors.get(i)[att] = obj; 583 } 569 584 } 570 585 … … 1085 1100 } 1086 1101 1102 public String validDecimal(String str, int max) { 1103 str = validDecimal(str); 1104 if (!(str.isEmpty()) && (new Integer(str) > max)) { 1105 dlg.manager.showVisualMessage("Maximum value exceeded"); 1106 return ""; 1107 } else { 1108 dlg.manager.showVisualMessage(""); 1109 return str; 1110 } 1111 } 1112 1087 1113 private boolean paintlock = false; 1088 1114
Note:
See TracChangeset
for help on using the changeset viewer.