PATRIK27 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Error in OpenStreetMapViewItemizedOverlay overloaded constructor #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The following constructor for OpenStreetMapViewItemizedOverlay is not passing 
the pMarker or pMarkerHotspot parameters properly:

public OpenStreetMapViewItemizedOverlay(
           final Context ctx,
           final List<T> aList,
           final Drawable pMarker,
           final Point pMarkerHotspot,
           final OnItemGestureListener<T> aOnItemGestureListener,
           final ResourceProxy pResourceProxy) {
           this(ctx, aList, null, null, null, aOnItemGestureListener, pResourceProxy);
        }

Note that the overloaded constructor has a pMarker and a pMarkerHotspot being 
passed in, however it doesn't pass them along to the next constructor and 
instead passes along nulls. The "this" call should be:

this(ctx, aList, pMarker, pMarkerHotspot, null, aOnItemGestureListener, 
pResourceProxy);

Thanks!
-Marc

Original issue reported on code.google.com by kurtzm...@gmail.com on 18 Oct 2010 at 8:53

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r447.

Original comment by kurtzm...@gmail.com on 29 Oct 2010 at 12:28