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:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2016-06-22 18:01:30 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-06-24 16:02:10 +0300
commit0fd32dfdacf116da42bd95b63f61a7090f7a013d (patch)
treedb189db32150fe7b6bb9ac1ac6e5a1f771b8c4f5 /drape_frontend
parent5ea305344aa51c77ee4f934b05a28f61c49c99c7 (diff)
If there is no rating, don't draw the star symbol.
Diffstat (limited to 'drape_frontend')
-rw-r--r--drape_frontend/apply_feature_functors.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/drape_frontend/apply_feature_functors.cpp b/drape_frontend/apply_feature_functors.cpp
index c18d3dd892..43d4f8f1f4 100644
--- a/drape_frontend/apply_feature_functors.cpp
+++ b/drape_frontend/apply_feature_functors.cpp
@@ -247,9 +247,12 @@ string BaseApplyFeature::ExtractHotelInfo() const
return "";
ostringstream out;
- out << m_hotelData.m_rating << kStarSymbol;
- if (m_hotelData.m_priceCategory != 0)
- out << " ";
+ if (!m_hotelData.m_rating.empty())
+ {
+ out << m_hotelData.m_rating << kStarSymbol;
+ if (m_hotelData.m_priceCategory != 0)
+ out << " ";
+ }
for (int i = 0; i < m_hotelData.m_priceCategory; i++)
out << kPriceSymbol;