Review fix.

This commit is contained in:
Daria Volvenkova 2015-10-02 17:10:52 +03:00 committed by r.kuznetsov
parent 65fb30dff9
commit 53271dd185

View file

@ -575,13 +575,14 @@ bool UserEventStream::EndDrag(Touch const & t, double timestamp, bool cancelled)
void UserEventStream::BeginScale(Touch const & t1, Touch const & t2)
{
TEST_CALL(BEGIN_SCALE);
if (m_state == STATE_SCALE)
{
Scale(t1, t2);
return;
}
TEST_CALL(BEGIN_SCALE);
ASSERT_EQUAL(m_state, STATE_EMPTY, ());
m_state = STATE_SCALE;
m2::PointD touch1 = t1.m_location;