Commit 633e151d authored by Ghislain MARY's avatar Ghislain MARY

Fix wrong comparator.

parent 63e61b0a
......@@ -74,9 +74,10 @@ BelCard::BelCard() : BelCardGeneric() {
bool comparePropertiesUsingPrefParam(const shared_ptr<BelCardProperty>& prop1, const shared_ptr<BelCardProperty>& prop2) {
shared_ptr<BelCardPrefParam> pref1 = prop1->getPrefParam();
shared_ptr<BelCardPrefParam> pref2 = prop2->getPrefParam();
if (pref2 == NULL) {
if ((pref1 == nullptr) && (pref2 == nullptr)) return false;
if (pref2 == nullptr) {
return true;
} else if (pref1 == NULL) {
} else if (pref1 == nullptr) {
return false;
} else {
return pref1->getValue() < pref2->getValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment