Skip to content

Commit 6c0a1da

Browse files
committedMay 29, 2018
Filter invalid rings during label geometry preparation
1 parent 2a70c4b commit 6c0a1da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/core/qgspallabeling.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#include "qgsproperty.h"
5959
#include "qgssymbollayerutils.h"
6060
#include "qgsmaptopixelgeometrysimplifier.h"
61+
#include "qgscurvepolygon.h"
6162
#include <QMessageBox>
6263

6364

@@ -2904,6 +2905,8 @@ QgsGeometry QgsPalLabeling::prepareGeometry( const QgsGeometry &geometry, QgsRen
29042905
{
29052906
return std::isfinite( point.x() ) && std::isfinite( point.y() );
29062907
} );
2908+
if ( QgsCurvePolygon *cp = qgsgeometry_cast< QgsCurvePolygon * >( geom.get() ) )
2909+
cp->removeInvalidRings();
29072910
}
29082911

29092912
// Rotate the geometry if needed, before clipping

0 commit comments

Comments
 (0)
Please sign in to comment.