diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-09-27 15:17:33 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:44:19 +0300 |
commit | 6b18ff35762510c32fa3774a06a5a136b55aa4fa (patch) | |
tree | 3f2e12101ccb24edbfa845d9f99c9b6fff911b20 /geometry/screenbase.cpp | |
parent | 5714f246652e2b549a2bd84cfcc9b26bf88e0199 (diff) |
added m2::AnyRect<T>::SetAngle and modified Navigator::SaveState to save current viewport without rotation.
Diffstat (limited to 'geometry/screenbase.cpp')
-rw-r--r-- | geometry/screenbase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/geometry/screenbase.cpp b/geometry/screenbase.cpp index 0753090f0c..1c7772025c 100644 --- a/geometry/screenbase.cpp +++ b/geometry/screenbase.cpp @@ -62,7 +62,7 @@ void ScreenBase::SetFromRects(m2::AnyRectD const & glbRect, m2::RectD const & px double vScale = glbRect.GetLocalRect().SizeY() / pxRect.SizeY(); m_Scale = max(hScale, vScale); - m_Angle = glbRect.angle(); + m_Angle = glbRect.Angle(); m_Org = glbRect.GlobalCenter(); UpdateDependentParameters(); @@ -74,7 +74,7 @@ void ScreenBase::SetFromRect(m2::AnyRectD const & GlobalRect) double vScale = GlobalRect.GetLocalRect().SizeY() / m_PixelRect.SizeY(); m_Scale = max(hScale, vScale); - m_Angle = GlobalRect.angle(); + m_Angle = GlobalRect.Angle(); m_Org = GlobalRect.GlobalCenter(); UpdateDependentParameters(); |