diff --git a/map/scales_processor.cpp b/map/scales_processor.cpp index 7e31222ae0..6e32d6e81d 100644 --- a/map/scales_processor.cpp +++ b/map/scales_processor.cpp @@ -49,7 +49,7 @@ int ScalesProcessor::GetTileScaleBase(ScreenBase const & s) const int ScalesProcessor::GetTileScaleBase(m2::RectD const & r) const { - double const sz = min(r.SizeX(), r.SizeY()); + double const sz = max(r.SizeX(), r.SizeY()); return max(1, my::rounds(log((MercatorBounds::maxX - MercatorBounds::minX) / sz) / log(2.0))); }