Skip to content
Permalink
Browse files

[labeling] Geometry transformations may result in nan points,

so filter these out when registering labeled features
  • Loading branch information
nyalldawson committed May 29, 2018
1 parent f092c7e commit 484102769e210a1b60ae05032e553b705ba74000
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgspallabeling.cpp
@@ -2899,6 +2899,11 @@ QgsGeometry QgsPalLabeling::prepareGeometry( const QgsGeometry &geometry, QgsRen
QgsDebugMsgLevel( QString( "Ignoring feature due to transformation exception" ), 4 );
return QgsGeometry();
}
// geometry transforms may result in nan points, remove these
geom.filterVertices( []( const QgsPoint & point )->bool
{
return std::isfinite( point.x() ) && std::isfinite( point.y() );
} );
}

// Rotate the geometry if needed, before clipping

0 comments on commit 4841027

Please sign in to comment.
You can’t perform that action at this time.