mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
#9655: check geometry polygon better
This commit is contained in:
parent
c237ea50ac
commit
04f702408e
@ -1841,7 +1841,7 @@ void QgsPalLayerSettings::registerFeature( QgsFeature& f, const QgsRenderContext
|
|||||||
}
|
}
|
||||||
|
|
||||||
// fix invalid polygons
|
// fix invalid polygons
|
||||||
if ( QGis::singleType( QGis::flatType( geom->wkbType() ) ) == QGis::WKBPolygon && !geom->isGeosValid() )
|
if ( geom->type() == QGis::Polygon && !geom->isGeosValid() )
|
||||||
{
|
{
|
||||||
geom->fromGeos( GEOSBuffer( geom->asGeos(), 0, 0 ) );
|
geom->fromGeos( GEOSBuffer( geom->asGeos(), 0, 0 ) );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user