Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a crash when running 'snap geometries to layer'
A crash may happen when running the alg with 'snap to anchor nodes (single layer only)' behavior. It turns out that I made a mistake while porting the algorithm to std::sort - originally the sorting function used -1/0/+1 for comparison, while std::sort wants '<' operator returning true/false. Due to inconsistent results from the comparison function, std::sort would end up corrupting the array and memory even beyond the range, causing crashes. Related to #29400 (but does not fix it)
- Loading branch information