diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-12-15 17:45:30 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-12-15 17:45:30 +0100 |
commit | 95a5716a54b6bc0f937ea08755bdfc4cd01ee351 (patch) | |
tree | f575fd31ae7f9482df0c46880109da554a3b732e /src/library/basetrackcache.cpp | |
parent | 3f7b674633fdb7b314ef4ecefd6223928872b92f (diff) | |
parent | 72b91833a8e7049e75328d32b00c596c4516022a (diff) |
Merge branch '2.3' of github.com:mixxxdj/mixxx into main
Diffstat (limited to 'src/library/basetrackcache.cpp')
-rw-r--r-- | src/library/basetrackcache.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/library/basetrackcache.cpp b/src/library/basetrackcache.cpp index bc8c66292c..e07d74324f 100644 --- a/src/library/basetrackcache.cpp +++ b/src/library/basetrackcache.cpp @@ -700,12 +700,13 @@ int BaseTrackCache::compareColumnValues(int sortColumn, // Sort as floats. double delta = val1.toDouble() - val2.toDouble(); - if (fabs(delta) < .00001) + if (fabs(delta) < .00001) { result = 0; - else if (delta > 0.0) + } else if (delta > 0.0) { result = 1; - else + } else { result = -1; + } } else if (sortColumn == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_KEY)) { KeyUtils::KeyNotation keyNotation = m_columnCache.keyNotation(); |