Fixed path text placing in perspective mode.

This commit is contained in:
Daria Volvenkova 2017-09-11 16:13:47 +03:00 committed by Vladimir Byko-Ianko
parent 7c16c73383
commit 469b1eadad
2 changed files with 2 additions and 4 deletions

View file

@ -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));

View file

@ -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 <vector>