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:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2017-06-28 17:55:33 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-06-28 18:43:03 +0300
commitf14b8d06174ea6bc54409e39f465944bd2d57f97 (patch)
treedbae61fe8e46fa10ffebc78d4806693e12ffcfd7 /indexer
parentde6624671df9c9ea18d3af458be832a265d4d3fd (diff)
Fixed shields rendering on roads without name
Diffstat (limited to 'indexer')
-rw-r--r--indexer/road_shields_parser.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/indexer/road_shields_parser.hpp b/indexer/road_shields_parser.hpp
index 1fd01aa001..d68691b2f9 100644
--- a/indexer/road_shields_parser.hpp
+++ b/indexer/road_shields_parser.hpp
@@ -42,13 +42,13 @@ struct RoadShield
inline bool operator<(RoadShield const & other) const
{
- if (m_type == other.m_type)
+ if (m_additionalText == other.m_additionalText)
{
- if (m_name == other.m_name)
- return m_additionalText < other.m_additionalText;
- return m_name < other.m_name;
+ if (m_type == other.m_type)
+ return m_name < other.m_name;
+ return m_type < other.m_type;
}
- return m_type < other.m_type;
+ return m_additionalText < other.m_additionalText;
}
};