diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2018-10-16 11:59:09 +0300 |
---|---|---|
committer | Tatiana Yan <tatiana.kondakova@gmail.com> | 2018-10-16 12:16:52 +0300 |
commit | 7bf18c191e1eb11c8a54b36eb0aecd7c59bff04c (patch) | |
tree | 1d0532c931b75688898ca288eb7ea5fcfcd9cb3c /map | |
parent | ff9fdf07b9432305a1b1f6e0e3b1322e5b425765 (diff) |
Review fixes.
Diffstat (limited to 'map')
-rw-r--r-- | map/framework.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index 0ba5ae56bf..6f6058b8b8 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -101,6 +101,7 @@ #include "std/algorithm.hpp" #include "std/bind.hpp" +#include "std/map.hpp" #include "std/target_os.hpp" #include "api/internal/c/api-client-internals.h" @@ -3344,6 +3345,9 @@ void Framework::VisualizeCityRoadsInRect(m2::RectD const & rect) size_t counter = 0; GetDataSource().ForEachInRect( [this, &rect, &cityRoads, &counter](FeatureType & ft) { + if (ft.GetFeatureType() != feature::GEOM_LINE) + return; + auto const & mwmId = ft.GetID().m_mwmId; auto const it = cityRoads.find(mwmId); if (it == cityRoads.cend()) |