Skip to content

Commit

Permalink
#9655: check geometry polygon better
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuarte47 committed Mar 6, 2014
1 parent c237ea5 commit 04f7024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgspallabeling.cpp
Expand Up @@ -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 ) );
}
Expand Down

0 comments on commit 04f7024

Please sign in to comment.