Ignore:
Timestamp:
2010-09-27T11:55:45+02:00 (14 years ago)
Author:
malcolmh
Message:

bug fix

Location:
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java

    r23287 r23375  
    634634
    635635                                c = getLightChar();
     636                                dlg.cbM01Kennung.setSelectedItem(c);
    636637                                if (c.contains("+")) {
    637638                                        i1 = c.indexOf("+");
     
    643644                                        if (tmp != null)
    644645                                                c = c + tmp;
    645                                 }
    646                                 dlg.cbM01Kennung.setSelectedItem(c);
    647                                 if ((dlg.cbM01Kennung.getSelectedIndex() != 0)
    648                                                 && (!getLightGroup().isEmpty())
    649                                                 || (((String) dlg.cbM01Kennung.getSelectedItem()).contains("("))
    650                                                 && !(((String) dlg.cbM01Kennung.getSelectedItem()).contains("+"))) {
     646                                        dlg.cbM01Kennung.setSelectedItem(c);
     647                                } else if (!getLightGroup().isEmpty())
    651648                                        c = c + "(" + getLightGroup() + ")";
     649                                if (dlg.cbM01Kennung.getSelectedIndex() == 0)
    652650                                        dlg.cbM01Kennung.setSelectedItem(c);
    653                                 }
    654651                                c = c + " " + getLightColour();
    655652                                lp = getLightPeriod();
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyCard.java

    r23308 r23375  
    193193                        dlg.cM01Fired.setEnabled(true);
    194194                        dlg.cM01Fired.setVisible(true);
     195                        dlg.tfM01Group.setVisible(false);
     196                        dlg.lM01Group.setVisible(false);
    195197                        if (!isSectored()) {
    196198                                dlg.cbM01Colour.setVisible(false);
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyLat.java

    r23372 r23375  
    277277                refreshStyles();
    278278                refreshLights();
    279                 setLightColour();
    280279                parseLights(keys);
    281280                parseFogRadar(keys);
     281                setLightColour();
    282282
    283283                dlg.cbM01CatOfMark.setSelectedIndex(getBuoyIndex());
Note: See TracChangeset for help on using the changeset viewer.