mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Filter invalid rings during label geometry preparation
This commit is contained in:
parent
2a70c4bcca
commit
6c0a1da076
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user