fix sorting of multiplexed signals
This commit is contained in:
@@ -117,7 +117,11 @@ int DBCSignalHandler::getCount()
|
|||||||
|
|
||||||
bool signal_cmp(DBC_SIGNAL a, DBC_SIGNAL b)
|
bool signal_cmp(DBC_SIGNAL a, DBC_SIGNAL b)
|
||||||
{
|
{
|
||||||
|
if (a.startBit == b.startBit) {
|
||||||
|
return QString::compare(a.name, b.name, Qt::CaseInsensitive) < 0;
|
||||||
|
} else {
|
||||||
return a.startBit < b.startBit;
|
return a.startBit < b.startBit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DBCSignalHandler::sort()
|
void DBCSignalHandler::sort()
|
||||||
|
|||||||
Reference in New Issue
Block a user