forked from organicmaps/organicmaps
small fixes
This commit is contained in:
parent
ffa84c6dc2
commit
9853593e82
1 changed files with 3 additions and 1 deletions
|
@ -229,7 +229,7 @@ void PathTextHandle::Update(ScreenBase const & screen)
|
|||
DrawReverse(screen);
|
||||
break;
|
||||
case 0:
|
||||
std::fill(m_positions.begin(), m_positions.end(), vec2(0.0f, 0.0f));
|
||||
ClearPositions();
|
||||
break;
|
||||
case 1:
|
||||
DrawForward(screen);
|
||||
|
@ -277,6 +277,7 @@ void PathTextHandle::DrawReverse(ScreenBase const & screen)
|
|||
ASSERT_NOT_EQUAL(advance, 0.0, ());
|
||||
PointF const pos = itr.m_pos;
|
||||
itr.Step(advance);
|
||||
ASSERT(!itr.BeginAgain(), ());
|
||||
|
||||
PointF dir = itr.m_avrDir.Normalize();
|
||||
PointF norm(-dir.y, dir.x);
|
||||
|
@ -314,6 +315,7 @@ void PathTextHandle::DrawForward(ScreenBase const & screen)
|
|||
ASSERT_NOT_EQUAL(advance, 0.0, ());
|
||||
PointF const pos = itr.m_pos;
|
||||
itr.Step(advance);
|
||||
ASSERT(!itr.BeginAgain(), ());
|
||||
|
||||
PointF dir = itr.m_avrDir.Normalize();
|
||||
PointF norm(-dir.y, dir.x);
|
||||
|
|
Loading…
Add table
Reference in a new issue