Commit a8650283 authored by Soren Harward's avatar Soren Harward
Browse files

Fix potential dangling iterator

BUG: 290533
parent 1cccedfe
......@@ -16,6 +16,7 @@ Version 2.6-Beta 1
"1.2 GB free" is shown instead of "85% used"; thicker capacity bar.
BUGFIXES:
* Fix rare APG solver crash. (BR 290533)
* Compilations are handled more consistently on iPods. (BR 232072)
Version 2.5
......
......@@ -253,6 +253,8 @@ APG::ConstraintSolver::select_population( APG::ConstraintSolver::Population& pop
while ( it != population.end() ) {
if ( it.key() == best ) {
++it;// Always keep the best solution, no matter how bad it is
if ( it == population.end() )
break;
}
if ( select( it.value() ) ) {
......
Supports Markdown
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