Skip to content

Commit

Permalink
Fixed init issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentneo committed Jan 23, 2019
1 parent a808209 commit 5ca7c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/GPXRoute.swift
Expand Up @@ -62,7 +62,7 @@ open class GPXRoute: GPXElement {
}

func newRoutePointWith(latitude: CGFloat, longitude: CGFloat) -> GPXRoutePoint {
let routepoint = GPXRoutePoint().routePoint(with: latitude, longitude: longitude)
let routepoint = GPXRoutePoint(latitude: latitude, longitude: longitude)
self.add(routepoint: routepoint)

return routepoint
Expand Down

0 comments on commit 5ca7c0c

Please sign in to comment.