[search] Fix bug with icons in iOS GUI.

This commit is contained in:
vng 2012-02-17 00:28:58 +03:00 committed by Alex Zolotarev
parent f7a1e679b8
commit c0d319f011

View file

@ -478,6 +478,8 @@ static void OnSearchResultCallback(search::Results const & res, int queryId)
}
else
{
// Reset possibly cached image
compass.image = nil;
double const northDeg = (heading.trueHeading < 0) ? heading.magneticHeading : heading.trueHeading;
m2::PointD const center = r.GetFeatureCenter();
compass.angle = ang::AngleTo(m2::PointD(MercatorBounds::LonToX(loc.coordinate.longitude),