Skip to content
Permalink
Browse files

fix debug build (followup 724f84d)

  • Loading branch information
jef-n committed Jun 4, 2020
1 parent 749269c commit 11d0f7a908a02f3d8714fb516ce883728d72653a
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/pal/layer.cpp
@@ -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;
}

0 comments on commit 11d0f7a

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