forked from organicmaps/organicmaps
iOS Build fix after changes in signature of GenerateRouteAltitudeChart().
This commit is contained in:
parent
7a3d5a810d
commit
e640f5aec6
1 changed files with 7 additions and 1 deletions
|
@ -288,8 +288,14 @@ bool isMarkerPoint(MWMRoutePoint const & point) { return point.IsValid() && !poi
|
|||
if (!imageData)
|
||||
{
|
||||
vector<uint8_t> imageRGBAData;
|
||||
if (!GetFramework().GenerateRouteAltitudeChart(width, height, imageRGBAData))
|
||||
int32_t minRouteAltitude = 0;
|
||||
int32_t maxRouteAltitude = 0;
|
||||
measurement_utils::Units units = measurement_utils::Units::Metric;
|
||||
if (!GetFramework().GenerateRouteAltitudeChart(width, height, imageRGBAData,
|
||||
minRouteAltitude, maxRouteAltitude, units))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (imageRGBAData.empty())
|
||||
return;
|
||||
imageData = [NSData dataWithBytes:imageRGBAData.data() length:imageRGBAData.size()];
|
||||
|
|
Loading…
Add table
Reference in a new issue