Ignore:
Timestamp:
2012-06-18T13:55:46+02:00 (12 years ago)
Author:
malcolmh
Message:

'New release'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java

    r28164 r28443  
    26342634                                if (!((String) sectors.get(i)[1]).isEmpty())
    26352635                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":character", (String) sectors.get(i)[1]));
     2636                                else if (!((String) sectors.get(0)[1]).isEmpty())
     2637                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":character", (String) sectors.get(0)[1]));
    26362638                                if (!((String) sectors.get(i)[2]).isEmpty())
    26372639                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":group", (String) sectors.get(i)[2]));
     2640                                else if (!((String) sectors.get(0)[2]).isEmpty())
     2641                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":group", (String) sectors.get(0)[2]));
    26382642                                if (!((String) sectors.get(i)[3]).isEmpty())
    26392643                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":sequence", (String) sectors.get(i)[3]));
     2644                                else if (!((String) sectors.get(0)[3]).isEmpty())
     2645                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":sequence", (String) sectors.get(0)[3]));
    26402646                                if (!((String) sectors.get(i)[4]).isEmpty())
    26412647                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":period", (String) sectors.get(i)[4]));
     2648                                else if (!((String) sectors.get(0)[4]).isEmpty())
     2649                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":period", (String) sectors.get(0)[4]));
    26422650                                if (sectors.get(i)[5] != Lit.UNKLIT)
    26432651                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":category", LitSTR.get(sectors.get(i)[5])));
     2652                                else if (sectors.get(0)[5] != Lit.UNKLIT)
     2653                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":category", LitSTR.get(sectors.get(0)[5])));
    26442654                                if (!((String) sectors.get(i)[6]).isEmpty())
    26452655                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":sector_start", (String) sectors.get(i)[6]));
     
    26482658                                if (!((String) sectors.get(i)[8]).isEmpty())
    26492659                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":radius", (String) sectors.get(i)[8]));
     2660                                else if (!((String) sectors.get(0)[8]).isEmpty())
     2661                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":radius", (String) sectors.get(0)[8]));
    26502662                                if (!((String) sectors.get(i)[9]).isEmpty())
    26512663                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":height", (String) sectors.get(i)[9]));
     2664                                else if (!((String) sectors.get(0)[9]).isEmpty())
     2665                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":height", (String) sectors.get(0)[9]));
    26522666                                if (!((String) sectors.get(i)[10]).isEmpty())
    26532667                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":range", (String) sectors.get(i)[10]));
     2668                                else if (!((String) sectors.get(0)[10]).isEmpty())
     2669                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":range", (String) sectors.get(0)[10]));
    26542670                                if (sectors.get(i)[11] != Vis.UNKVIS)
    26552671                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":visibility", VisSTR.get(sectors.get(i)[11])));
     2672                                else if (sectors.get(0)[11] != Vis.UNKVIS)
     2673                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":visibility", VisSTR.get(sectors.get(0)[11])));
    26562674                                if (sectors.get(i)[12] != Exh.UNKEXH)
    26572675                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":exhibition", ExhSTR.get(sectors.get(i)[12])));
     2676                                else if (sectors.get(0)[12] != Exh.UNKEXH)
     2677                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":exhibition", ExhSTR.get(sectors.get(0)[12])));
    26582678                                if (!((String) sectors.get(i)[13]).isEmpty())
    26592679                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":orientation", (String) sectors.get(i)[13]));
    26602680                                if (!((String) sectors.get(i)[14]).isEmpty())
    26612681                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":multiple", (String) sectors.get(i)[14]));
     2682                                else if (!((String) sectors.get(0)[14]).isEmpty())
     2683                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":multiple", (String) sectors.get(0)[14]));
    26622684                        }
    26632685
Note: See TracChangeset for help on using the changeset viewer.