small fix

This commit is contained in:
Roman Sorokin 2014-08-05 10:20:01 +03:00 committed by Alex Zolotarev
parent 5d7030c15b
commit 3c40f48b39

View file

@ -256,7 +256,7 @@ void PathTextHandle::Update(ScreenBase const & screen)
ASSERT_NOT_EQUAL(advance, 0.0, ());
entireLength += advance;
PointF const pos = itr.m_pos;
PointF const & pos = itr.m_pos;
itr.Step(advance);
if(entireLength >= m_params.m_offsetEnd * m_scaleFactor || itr.BeginAgain())
return;