Formatting:

Signed-off-by: Colin Takushi <takushicolin@gmail.com>
This commit is contained in:
Colin Takushi 2025-01-26 17:24:20 -06:00
parent eab8564533
commit baca976cce

View file

@ -193,12 +193,13 @@ bool Navigator::ScaleImpl(m2::PointD const & newPt1, m2::PointD const & newPt2,
if (CanShrinkInto(tmp, worldR))
tmp = ShrinkInto(tmp, worldR);
else
return false;
return false;
}
if (!CheckMaxScale(tmp))
{
if (doRotateScreen){
if (doRotateScreen)
{
math::Matrix<double, 3, 3> const tmpM =
screen.GtoPMatrix() * ScreenBase::CalcTransform(oldPt1 + offset, oldPt2 + offset,
newPt1 + offset, newPt2 + offset,
@ -207,8 +208,10 @@ bool Navigator::ScaleImpl(m2::PointD const & newPt1, m2::PointD const & newPt2,
tmp.SetGtoPMatrix(tmpM);
}
else
{
return false;
}
}
// re-checking the borders, as we might violate them a bit (don't know why).