Ignore:
Timestamp:
2011-11-10T00:49:21+01:00 (13 years ago)
Author:
pieren
Message:

fixing "Feuille list" parsing for communes with several "Tableau d'assemblage"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java

    r26509 r27034  
    385385        listOfFeuilles.clear();
    386386        // get "Tableau d'assemblage"
     387        String inputTA = input;
    387388        if (Main.pref.getBoolean("cadastrewms.useTA", false)) {
    388             while (input.indexOf(cTAImageLinkStart) != -1) {
    389                 input = input.substring(input.indexOf(cTAImageLinkStart) + cTAImageLinkStart.length());
    390                 String refTA = input.substring(0, input.indexOf("'"));
    391                 String nameTA = input.substring(input.indexOf(cTAImageNameStart) + cTAImageNameStart.length());
     389            while (inputTA.indexOf(cTAImageLinkStart) != -1) {
     390                inputTA = inputTA.substring(inputTA.indexOf(cTAImageLinkStart) + cTAImageLinkStart.length());
     391                String refTA = inputTA.substring(0, inputTA.indexOf("'"));
     392                String nameTA = inputTA.substring(inputTA.indexOf(cTAImageNameStart) + cTAImageNameStart.length());
    392393                nameTA = nameTA.substring(0, nameTA.indexOf("<"));
    393394                listOfFeuilles.add(new PlanImage(nameTA, refTA));
Note: See TracChangeset for help on using the changeset viewer.