Merge pull request #3910 from VladiMihaylenko/master

[ios] Fixed sharing url.
This commit is contained in:
Илья Гречухин 2016-08-01 14:24:57 +04:00 committed by GitHub
commit 76f2cef625

View file

@ -66,8 +66,9 @@ NSString * httpGe0Url(NSString * shortUrl)
return @"";
};
string const s = f.CodeGe0url(self.location.latitude, self.location.longitude, f.GetDrawScale(),
title(self.entity).UTF8String);
ms::LatLon const ll = self.entity ? self.entity.latlon : ms::LatLon(self.location.latitude, self.location.longitude);
string const s = f.CodeGe0url(ll.lat, ll.lon, f.GetDrawScale(), title(self.entity).UTF8String);
NSString * url = @(s.c_str());
if (!isShort)
return url;