Ignore:
Timestamp:
2011-09-24T21:30:31+02:00 (13 years ago)
Author:
malcolmh
Message:

'Bug fix release'

Location:
applications/editors/josm/plugins/toms/src/toms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java

    r26018 r26706  
    13231323                        cbM01Sector.addItem(Messages.getString("SmpDialogAction.202")); //$NON-NLS-1$
    13241324                        cbM01Sector.addItem(Messages.getString("SmpDialogAction.203")); //$NON-NLS-1$
     1325                        cbM01Sector.addItem("10");
     1326                        cbM01Sector.addItem("11");
     1327                        cbM01Sector.addItem("12");
     1328                        cbM01Sector.addItem("13");
     1329                        cbM01Sector.addItem("14");
     1330                        cbM01Sector.addItem("15");
     1331                        cbM01Sector.addItem("16");
     1332                        cbM01Sector.addItem("17");
     1333                        cbM01Sector.addItem("18");
     1334                        cbM01Sector.addItem("19");
    13251335                        cbM01Sector.addActionListener(new ActionListener() {
    13261336                                public void actionPerformed(ActionEvent e) {
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java

    r26527 r26706  
    261261        }
    262262
    263         private String[] LightChar = new String[10];
     263        private String[] LightChar = new String[20];
    264264
    265265        public String getLightChar() {
     
    273273        }
    274274
    275         private String[] LightColour = new String[10];
     275        private String[] LightColour = new String[20];
    276276
    277277        public String getLightColour() {
     
    285285        }
    286286
    287         private String[] LightGroup = new String[10];
     287        private String[] LightGroup = new String[20];
    288288
    289289        public String getLightGroup() {
     
    305305        }
    306306
    307         private String[] Height = new String[10];
     307        private String[] Height = new String[20];
    308308
    309309        public String getHeight() {
     
    317317        }
    318318
    319         private String[] Range = new String[10];
     319        private String[] Range = new String[20];
    320320
    321321        public String getRange() {
     
    329329        }
    330330
    331         private String[] Sequence = new String[10];
     331        private String[] Sequence = new String[20];
    332332
    333333        public String getSeq() {
     
    341341        }
    342342
    343         private String[] Bearing1 = new String[10];
     343        private String[] Bearing1 = new String[20];
    344344
    345345        public String getBearing1() {
     
    353353        }
    354354
    355         private String[] Bearing2 = new String[10];
     355        private String[] Bearing2 = new String[20];
    356356
    357357        public String getBearing2() {
     
    365365        }
    366366
    367         private String[] Radius = new String[10];
     367        private String[] Radius = new String[20];
    368368
    369369        public String getRadius() {
     
    377377        }
    378378
    379         private String[] LightPeriod = new String[10];
     379        private String[] LightPeriod = new String[20];
    380380
    381381        public String getLightPeriod() {
     
    470470                                int index = 0;
    471471                                key = key.substring(14);
    472                                 if (key.matches("^\\d:.*")) {
     472                                if (key.matches("^\\d\\d:.*")) {
     473                                        index = ((key.charAt(0) - '0') * 10) + key.charAt(1) - '0';
     474                                        key = key.substring(3);
     475                                } else if (key.matches("^\\d:.*")) {
     476                                                index = key.charAt(0) - '0';
     477                                                key = key.substring(2);
     478                                } else if ((key.matches("^\\d$")) || (key.matches("^\\d\\d$"))) {
    473479                                        index = key.charAt(0) - '0';
    474                                         key = key.substring(2);
    475                                 } else if (key.matches("^\\d$")) {
    476                                         index = key.charAt(0) - '0';
     480                                        if (key.matches("^\\d\\d$")) {
     481                                                index = (index * 10) + key.charAt(1) - '0';
     482                                        }
    477483                                        String values[] = value.split(":");
    478484                                        if (values[0].equals("red"))
     
    971977                                                "seamark:light:radius", Radius[0]));
    972978
    973                         for (int i = 1; i < 10; i++) {
     979                        for (int i = 1; i < 20; i++) {
    974980
    975981                                if (LightColour[i] != null) {
Note: See TracChangeset for help on using the changeset viewer.