[ios] LocationManager lastLocation fix

This commit is contained in:
Igor Khmurets 2014-05-30 18:50:47 +03:00 committed by Alex Zolotarev
parent 891572db7d
commit 9e5e4a0312

View file

@ -97,12 +97,12 @@
- (CLLocation *)lastLocation
{
return m_locationManager.location;
return m_isStarted ? m_locationManager.location : nil;
}
- (CLHeading *)lastHeading
{
return m_locationManager.heading;
return m_isStarted ? m_locationManager.heading : nil;
}
- (void)location:(CLLocation *)location toGpsInfo:(location::GpsInfo &)info