Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Filter invalid rings during label geometry preparation
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+3
−0
src/core/qgspallabeling.cpp
|
@@ -58,6 +58,7 @@ |
|
|
#include "qgsproperty.h" |
|
|
#include "qgssymbollayerutils.h" |
|
|
#include "qgsmaptopixelgeometrysimplifier.h" |
|
|
#include "qgscurvepolygon.h" |
|
|
#include <QMessageBox> |
|
|
|
|
|
|
|
@@ -2904,6 +2905,8 @@ QgsGeometry QgsPalLabeling::prepareGeometry( const QgsGeometry &geometry, QgsRen |
|
|
{ |
|
|
return std::isfinite( point.x() ) && std::isfinite( point.y() ); |
|
|
} ); |
|
|
if ( QgsCurvePolygon *cp = qgsgeometry_cast< QgsCurvePolygon * >( geom.get() ) ) |
|
|
cp->removeInvalidRings(); |
|
|
} |
|
|
|
|
|
// Rotate the geometry if needed, before clipping |
|
|