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
path: root/map
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2018-09-03 15:27:38 +0300
committerVlad Mihaylenko <vxmihaylenko@gmail.com>2018-09-06 15:07:03 +0300
commita78bfca62641eb95e433aa1cc49c5bc77e4fc3dc (patch)
tree632ec20d75a7faee44fa52730bce6e823d816cd7 /map
parent2724cc7a2e57bca64705d83d92e95d382e9dc11a (diff)
[ugc][core] Ugc without ratings is allowed, incorrect rating is changed to 0.0f
Diffstat (limited to 'map')
-rw-r--r--map/place_page_info.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/map/place_page_info.cpp b/map/place_page_info.cpp
index 453b6f671b..33e834d4ca 100644
--- a/map/place_page_info.cpp
+++ b/map/place_page_info.cpp
@@ -357,7 +357,7 @@ Impress GetImpress(float const rawRating)
CHECK_LESS_OR_EQUAL(rawRating, kTopRatingBound, ());
CHECK_GREATER_OR_EQUAL(rawRating, kIncorrectRating, ());
- if (rawRating <= 0.0f)
+ if (rawRating == kIncorrectRating)
return Impress::None;
if (rawRating < 0.2f * kTopRatingBound)
return Impress::Horrible;
@@ -376,7 +376,7 @@ std::string GetRatingFormatted(float const rawRating)
CHECK_LESS_OR_EQUAL(rawRating, kTopRatingBound, ());
CHECK_GREATER_OR_EQUAL(rawRating, kIncorrectRating, ());
- if (rawRating <= 0.0f)
+ if (rawRating == kIncorrectRating)
return kEmptyRatingSymbol;
std::ostringstream oss;