From e4e422f88d8a28ed61070b9afb1f155d914bf2df Mon Sep 17 00:00:00 2001 From: Daria Volvenkova Date: Thu, 24 Dec 2015 00:45:13 +0300 Subject: [PATCH] Poi selection fixed --- geometry/screenbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry/screenbase.cpp b/geometry/screenbase.cpp index f1eb81e4ad..c00f882b86 100644 --- a/geometry/screenbase.cpp +++ b/geometry/screenbase.cpp @@ -366,7 +366,7 @@ m2::PointD ScreenBase::PtoP3d(m2::PointD const & pt, double ptZ) const Vector3dT const normalizedPoint{float(2.0 * pt.x / m_PixelRect.SizeX() - 1.0), -float(2.0 * pt.y / m_PixelRect.SizeY() - 1.0), - float(2.0 * ptZ / m_PixelRect.SizeX()), 1.0}; + float(2.0 * ptZ / m_PixelRect.SizeY()), 1.0}; Vector3dT const perspectivePoint = normalizedPoint * m_Pto3d;