Skip to content
Permalink
Browse files

#9655: fix invalid polygons with buffer_0

  • Loading branch information
ahuarte47 committed Mar 3, 2014
1 parent 0775675 commit c237ea50ac06a23d000a132fceda88ce7482f079
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgspallabeling.cpp
@@ -1840,6 +1840,12 @@ void QgsPalLayerSettings::registerFeature( QgsFeature& f, const QgsRenderContext
}
}

// fix invalid polygons
if ( QGis::singleType( QGis::flatType( geom->wkbType() ) ) == QGis::WKBPolygon && !geom->isGeosValid() )
{
geom->fromGeos( GEOSBuffer( geom->asGeos(), 0, 0 ) );
}

// CLIP the geometry if it is bigger than the extent
// don't clip if centroid is requested for whole feature
bool do_clip = false;

0 comments on commit c237ea5

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