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
diff options
context:
space:
mode:
Diffstat (limited to 'map/framework.cpp')
-rw-r--r--map/framework.cpp4
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())