From 469b1eadad7834cc1c78dfbbc6b78a50c52834f9 Mon Sep 17 00:00:00 2001 From: Daria Volvenkova Date: Mon, 11 Sep 2017 16:13:47 +0300 Subject: [PATCH] Fixed path text placing in perspective mode. --- drape_frontend/path_text_handle.cpp | 4 +--- routing/routing_integration_tests/road_graph_tests.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drape_frontend/path_text_handle.cpp b/drape_frontend/path_text_handle.cpp index 595e0b3164..d51040018d 100644 --- a/drape_frontend/path_text_handle.cpp +++ b/drape_frontend/path_text_handle.cpp @@ -161,10 +161,8 @@ void PathTextContext::Update(ScreenBase const & screen) if (screen.IsReverseProjection3d(pos)) { if (pixelSpline.GetSize() > 1) - { m_pixel3dSplines.push_back(pixelSpline); - pixelSpline.Clear(); - } + pixelSpline.Clear(); continue; } AddPointAndRound(pixelSpline, screen.PtoP3d(pos)); diff --git a/routing/routing_integration_tests/road_graph_tests.cpp b/routing/routing_integration_tests/road_graph_tests.cpp index 7710d939cd..b6c0b77bba 100644 --- a/routing/routing_integration_tests/road_graph_tests.cpp +++ b/routing/routing_integration_tests/road_graph_tests.cpp @@ -13,7 +13,7 @@ #include "routing/features_road_graph.hpp" #include "routing/road_graph.hpp" -#include "routing_integration_tests/routing_test_tools.hpp" +#include "routing/routing_integration_tests/routing_test_tools.hpp" #include