Formatting:
Signed-off-by: Colin Takushi <takushicolin@gmail.com>
This commit is contained in:
parent
eab8564533
commit
baca976cce
1 changed files with 5 additions and 2 deletions
|
@ -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).
|
||||
|
|
Reference in a new issue