Ignore:
Timestamp:
2013-06-29T03:57:08+02:00 (11 years ago)
Author:
donvip
Message:

[josm_downloadalong] fix #josm6688 - CCE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/download_along/src/org/openstreetmap/josm/plugin/download_along/DownloadAlong.java

    r27852 r29729  
    123123
    124124      for (OsmPrimitive prim : selection) {
    125         Way way = (Way) prim;
    126         for (Node n : way.getNodes()) {
    127           latsum += n.getCoor().lat();
    128           latcnt++;
    129         }
     125          if (prim instanceof Way) {
     126              Way way = (Way) prim;
     127              for (Node n : way.getNodes()) {
     128                  latsum += n.getCoor().lat();
     129                  latcnt++;
     130              }
     131          }
    130132      }
    131133
Note: See TracChangeset for help on using the changeset viewer.