Skip to content

Commit

Permalink
Filter invalid rings during label geometry preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 29, 2018
1 parent 2a70c4b commit 6c0a1da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgspallabeling.cpp
Expand Up @@ -58,6 +58,7 @@
#include "qgsproperty.h"
#include "qgssymbollayerutils.h"
#include "qgsmaptopixelgeometrysimplifier.h"
#include "qgscurvepolygon.h"
#include <QMessageBox>


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6c0a1da

Please sign in to comment.