Fix floating point comparison

This commit is contained in:
Roland Winklmeier
2018-08-24 14:33:27 +02:00
parent 08e06c6ed1
commit ca9a2e5fd1
4 changed files with 6 additions and 6 deletions

View File

@@ -40,7 +40,7 @@ namespace BlackMisc
int compare(double a, double b)
{
if (a == b) return 0;
if (qFuzzyCompare(a, b)) return 0;
return a < b ? -1 : 1;
}