doing a fuzzy compare to avoid line duplication
This commit is contained in:
parent
c58a86130a
commit
5e5dd7a61c
@ -106,7 +106,8 @@ namespace
|
||||
{
|
||||
while ( !m_gradientIterator.isDone() )
|
||||
{
|
||||
if ( m_t0 + m_gradientIterator.position() * m_dt > pos )
|
||||
const auto pos2 = m_t0 + m_gradientIterator.position() * m_dt;
|
||||
if ( pos2 > pos && !qFuzzyIsNull( pos2 - pos ) )
|
||||
return;
|
||||
|
||||
m_gradientIterator.advance();
|
||||
|
Loading…
x
Reference in New Issue
Block a user