Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/map
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-08-02 11:43:20 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-08-02 19:18:42 +0300
commit98b7a126cff40aa63dfcfa6ca193e0103e509e94 (patch)
treed1c4b288e05fab69babccd8e7e8066398debbdd8 /map
parent0deff0b51adfe7d0a890a18dc7490cb119c3e57d (diff)
Fixed PixelRectIn3d usage
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 7a6cbfde1d..b61215d3cf 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -1178,8 +1178,7 @@ void Framework::ShowAll()
m2::PointD Framework::GetPixelCenter() const
{
- return m_currentModelView.isPerspective() ? m_currentModelView.PixelRectIn3d().Center()
- : m_currentModelView.PixelRect().Center();
+ return m_currentModelView.PixelRectIn3d().Center();
}
m2::PointD Framework::GetVisiblePixelCenter() const