[drape] Fix infinite zoom in MAPSME-14796

git diff eb7c804883 eb7c804883~ | git apply
This commit is contained in:
Anatoliy Tomilov 2020-09-10 12:53:36 +05:00 committed by mpimenov
parent cb3b4198e9
commit afc2916da1

View file

@ -282,7 +282,7 @@ uint32_t CalculateTileSize(uint32_t screenWidth, uint32_t screenHeight)
int GetDrawTileScale(int baseScale, uint32_t tileSize, double visualScale)
{
return std::clamp(baseScale + GetTileScaleIncrement(tileSize, visualScale), 1, scales::GetUpperStyleScale());
return std::max(1, baseScale + GetTileScaleIncrement(tileSize, visualScale));
}
int GetDrawTileScale(ScreenBase const & s, uint32_t tileSize, double visualScale)