Skip to content
Permalink
Browse files

#9655: check geometry polygon better

  • Loading branch information
ahuarte47 committed Mar 6, 2014
1 parent c237ea5 commit 04f702408eff94c6748e67838ffc0e3e7aa198d7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgspallabeling.cpp
@@ -1841,7 +1841,7 @@ void QgsPalLayerSettings::registerFeature( QgsFeature& f, const QgsRenderContext
}

// 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 ) );
}

0 comments on commit 04f7024

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