Fix irreflexive comparator in settings migration path sort
The version comparison lambda used >= 0, which returns true for equal versions (compareVersions returns 0 for equal). This violates strict weak ordering, causing undefined behavior in std::sort.
This commit is contained in:
@@ -812,7 +812,7 @@ bool SETTINGS_MANAGER::GetPreviousVersionPaths( std::vector<wxString>* aPaths )
|
||||
if( !extractVersion( verB ) )
|
||||
return true;
|
||||
|
||||
return compareVersions( verA, verB ) >= 0;
|
||||
return compareVersions( verA, verB ) > 0;
|
||||
} );
|
||||
|
||||
return aPaths->size() > 0;
|
||||
|
||||
Reference in New Issue
Block a user