mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 21:13:55 +00:00
committed by
Konstantin Pastbin
parent
a28d5d15ce
commit
2aaf37e9ee
@@ -33,12 +33,12 @@ double GetScaleLevelD(m2::RectD const & r)
|
||||
|
||||
int GetScaleLevel(double ratio)
|
||||
{
|
||||
return std::lround(GetScaleLevelD(ratio));
|
||||
return static_cast<int>(std::lround(GetScaleLevelD(ratio)));
|
||||
}
|
||||
|
||||
int GetScaleLevel(m2::RectD const & r)
|
||||
{
|
||||
return std::lround(GetScaleLevelD(r));
|
||||
return static_cast<int>(std::lround(GetScaleLevelD(r)));
|
||||
}
|
||||
|
||||
namespace
|
||||
|
||||
Reference in New Issue
Block a user