diff options
author | Bill King <bill.king@nokia.com> | 2009-11-09 23:21:25 (GMT) |
---|---|---|
committer | Bill King <bill.king@nokia.com> | 2009-11-09 23:21:25 (GMT) |
commit | e80adac9902abfd423aae23dd22f490a33763228 (patch) | |
tree | 63cc04b5546454fcf668125169c6793fcdbdf04c /src/gui/graphicsview/qsimplex_p.h | |
parent | 87fb186c553d0875c92938a6fd5a9aaf8d69a057 (diff) | |
parent | b770abdd564f28a8d9dde816f72f73e6b15984af (diff) | |
download | Qt-e80adac9902abfd423aae23dd22f490a33763228.zip Qt-e80adac9902abfd423aae23dd22f490a33763228.tar.gz Qt-e80adac9902abfd423aae23dd22f490a33763228.tar.bz2 |
Merge branch '4.6' of ../qt into 4.6
Diffstat (limited to 'src/gui/graphicsview/qsimplex_p.h')
-rw-r--r-- | src/gui/graphicsview/qsimplex_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qsimplex_p.h b/src/gui/graphicsview/qsimplex_p.h index 084ad7f..a5816d1 100644 --- a/src/gui/graphicsview/qsimplex_p.h +++ b/src/gui/graphicsview/qsimplex_p.h @@ -107,7 +107,7 @@ struct QSimplexConstraint Q_ASSERT(constant > 0 || qFuzzyCompare(1, 1 + constant)); - if ((leftHandSide == constant) || qFuzzyCompare(1000 + leftHandSide, 1000 + constant)) + if ((leftHandSide == constant) || qAbs(leftHandSide - constant) < 0.00000001) return true; switch (ratio) { |