Ignore:
Timestamp:
2013-08-21T03:47:16+02:00 (11 years ago)
Author:
donvip
Message:

[josm_plugins] fix #8987 - bump min JOSM version of nearly all plugins to r6162 + code update/cleanup, fix warnings

Location:
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
Files:
2 edited

Legend:

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

    r28961 r29854  
    183183        // flip the image (svg using a reversed Y coordinate system)
    184184        double pivot = viewBox.min.getY() + (viewBox.max.getY() - viewBox.min.getY()) / 2;
    185         for (EastNorth en : eastNorth) {
    186             en.setLocation(en.east(), 2 * pivot - en.north());
     185        for (int i = 0; i < eastNorth.size(); i++) {
     186            EastNorth en = eastNorth.get(i);
     187            eastNorth.set(i, new EastNorth(en.east(), 2 * pivot - en.north()));
    187188        }
    188189        return;
     
    254255                svg += line;
    255256            }
     257            br.close();
    256258            bos.close();
    257259        } catch (IOException e) {
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java

    r28961 r29854  
    155155        // flip the image (svg using a reversed Y coordinate system)
    156156        double pivot = viewBox.min.getY() + (viewBox.max.getY() - viewBox.min.getY()) / 2;
    157         for (EastNorth en : eastNorth) {
    158             en.setLocation(en.east(), 2 * pivot - en.north());
     157        for (int i = 0; i < eastNorth.size(); i++) {
     158            EastNorth en = eastNorth.get(i);
     159            eastNorth.set(i, new EastNorth(en.east(), 2 * pivot - en.north()));
    159160        }
    160161        return Math.abs(minX - viewBox.min.getX())+Math.abs(maxX - viewBox.max.getX())
     
    208209                svg += line;
    209210            }
     211            br.close();
    210212            bos.close();
    211213        } catch (IOException e) {
Note: See TracChangeset for help on using the changeset viewer.