Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[pal] Fix crash in labeling polygons in some rare circumstance which …
…I can only reproduce on a single project But this code is so totally unreadable that it's not suprising that there's all kinds of nasty here. In this case the crash is caused when the polygon part calculated by "splitPolygons" (which does... something... to a polygon) results in a zero area polygon (because... reasons). So add a safeguard in to avoid this situation. Also rename class to something saner
- Loading branch information
Showing
with
32 additions
and 34 deletions.
- +6 −3 src/core/pal/feature.cpp
- +20 −27 src/core/pal/pointset.cpp
- +6 −4 src/core/pal/pointset.h