review fixes

This commit is contained in:
ExMix 2015-06-18 22:02:35 +03:00 committed by r.kuznetsov
parent e53ba525d9
commit 90094244ed

View file

@ -1847,9 +1847,11 @@ void Framework::BuildRoute(m2::PointD const & start, m2::PointD const & finish,
vector<storage::TIndex> absentRoutingIndexes;
if (code == IRouter::NoError)
{
double constexpr kRouteScaleMultiplierToShowWholeRoute = 1.5;
InsertRoute(route);
m2::RectD routeRect = route.GetPoly().GetLimitRect();
routeRect.Scale(routeScale);
routeRect.Scale(kRouteScaleMultiplierToShowWholeRoute);
m_drapeEngine->SetModelViewRect(routeRect, true, -1, true);
}
else