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:
Seth Hillbrand
2026-02-19 07:52:37 -08:00
parent 788716490a
commit b7826dfdc3
+1 -1
View File
@@ -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;