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:
authorExMix <rahuba.youri@mapswithme.com>2014-09-30 13:55:20 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:29:01 +0300
commit38f5304762fdc00c6742caba5c7fbbc37de44d3e (patch)
tree7234acd5e0dd412f711d8018acd5342c3366c83e /map/location_state.cpp
parent34b5b0ef8dcd40b61f00f63b1343f7000d7ffc5b (diff)
review fixes
Diffstat (limited to 'map/location_state.cpp')
-rw-r--r--map/location_state.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/map/location_state.cpp b/map/location_state.cpp
index 27e6c1e82c..72b3651dcb 100644
--- a/map/location_state.cpp
+++ b/map/location_state.cpp
@@ -704,7 +704,7 @@ bool State::IsRotationAllowed() const
void State::Rotated()
{
m_afterPendingMode = NotFollow;
- ASSERT(!IsInRouting() || GetMode() != RotateAndFollow, ());
+ ASSERT(IsRotationAllowed(), ());
StopCompassFollowing(NotFollow);
}
@@ -739,6 +739,7 @@ bool ValidateTransition(State::Mode oldMode, State::Mode newMode)
if (oldMode == State::PendingPosition)
{
return newMode == State::UnknownPosition ||
+ newMode == State::NotFollow ||
newMode == State::Follow;
}