Changeset c032006 in subsurface


Ignore:
Timestamp:
Dec 28, 2017, 4:22:51 AM (4 weeks ago)
Author:
Jan Mulder <jlmulder@…>
Branches:
master
Children:
97d564e
Parents:
c3b1c64
git-author:
Berthold Stoeger <bstoeger@…> (12/28/17 01:53:26)
git-committer:
Jan Mulder <jlmulder@…> (12/28/17 04:22:51)
Message:

Replace less-or-equal by less-than comparison in lessThan function

DiveLocationFilterProxyModel::lessThan() used less-or-equal instead
of less-than comparison. This can lead to subtle bugs if two elements
compare as equal.

Signed-off-by: Berthold Stoeger <bstoeger@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/locationinformation.cpp

    r8ef87e6 rc032006  
    359359bool DiveLocationFilterProxyModel::lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const
    360360{
    361         return source_left.data().toString() <= source_right.data().toString();
     361        return source_left.data().toString() < source_right.data().toString();
    362362}
    363363
Note: See TracChangeset for help on using the changeset viewer.