Skip to content

Commit

Permalink
Crash fix: Iterator might be invalidated by erase, reorder operations.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjenssen committed Mar 14, 2024
1 parent b75ef88 commit 6dd4e6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ void RimPolygonInViewCollection::syncPolygonsWithView()
if ( it != existingPolygonsInView.end() )
{
newPolygonsInView.push_back( *it );
existingPolygonsInView.erase( it );
( *it )->updateTargetsFromPolygon();
existingPolygonsInView.erase( it );
}
else
{
Expand Down

0 comments on commit 6dd4e6a

Please sign in to comment.