forked from organicmaps/organicmaps
Minor logic fix
This commit is contained in:
parent
1485c29aaa
commit
0da59ba7ba
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ void Animator::RotateScreen(double startAngle, double endAngle)
|
|||
{
|
||||
if (m_rotateScreenTask)
|
||||
{
|
||||
if (!m_rotateScreenTask->IsCancelled())
|
||||
if (!m_rotateScreenTask->IsCancelled() && !m_rotateScreenTask->IsEnded())
|
||||
m_rotateScreenTask->Cancel();
|
||||
m_rotateScreenTask->Unlock();
|
||||
m_rotateScreenTask.reset();
|
||||
|
|
Loading…
Add table
Reference in a new issue