Ignore:
Timestamp:
2011-11-21T21:23:08+01:00 (13 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

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

    r27112 r27115  
    13761376                                                setLightAtt(Att.COL, i, col);
    13771377                        }
    1378                         if (keys.containsKey("seamark:light" + secStr + ":character"))
    1379                                 setLightAtt(Att.CHR, i, keys.get("seamark:light" + secStr + ":character"));
     1378                        if (keys.containsKey("seamark:light" + secStr + ":character")) {
     1379                                String c = keys.get("seamark:light" + secStr + ":character");
     1380                                if (c.contains("(") && c.contains(")")) {
     1381                                        int i1 = c.indexOf("(");
     1382                                        int i2 = c.indexOf(")");
     1383                                        setLightAtt(Att.GRP, i, c.substring((i1+1), i2));
     1384                                        c = c.substring(0, i1) + c.substring((i2+1), c.length());
     1385                                        }
     1386                                setLightAtt(Att.CHR, i, c);
     1387                        }
    13801388                        if (keys.containsKey("seamark:light" + secStr + ":group"))
    13811389                                setLightAtt(Att.GRP, i, keys.get("seamark:light" + secStr + ":group"));
Note: See TracChangeset for help on using the changeset viewer.