Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix debug build (followup 724f84d)
  • Loading branch information
jef-n committed Jun 4, 2020
1 parent 749269c commit 11d0f7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/pal/layer.cpp
Expand Up @@ -212,18 +212,17 @@ bool Layer::registerFeature( QgsLabelFeature *lf )
while ( !simpleGeometries->isEmpty() )
{
const GEOSGeometry *geom = simpleGeometries->takeFirst();

if ( !geom )
{
QgsDebugMsg( QStringLiteral( "Obstacle geometry passed to PAL labeling engine could not be converted to GEOS! %1" ).arg( ( *it )->asWkt() ) );
QgsDebugMsg( QStringLiteral( "Obstacle geometry passed to PAL labeling engine could not be converted to GEOS!" ) );
continue;
}

// ignore invalid geometries (e.g. polygons with self-intersecting rings)
if ( GEOSisValid_r( geosctxt, geom ) != 1 ) // 0=invalid, 1=valid, 2=exception
{
// this shouldn't happen -- we have already checked this while registering the feature
QgsDebugMsg( QStringLiteral( "Obstacle geometry passed to PAL labeling engine is not valid! %1" ).arg( ( *it )->asWkt() ) );
QgsDebugMsg( QStringLiteral( "Obstacle geometry passed to PAL labeling engine is not valid!" ) );
continue;
}

Expand Down

0 comments on commit 11d0f7a

Please sign in to comment.