Skip to content

Commit 04f7024

Browse files
committedMar 6, 2014
#9655: check geometry polygon better
1 parent c237ea5 commit 04f7024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgspallabeling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ void QgsPalLayerSettings::registerFeature( QgsFeature& f, const QgsRenderContext
18411841
}
18421842

18431843
// fix invalid polygons
1844-
if ( QGis::singleType( QGis::flatType( geom->wkbType() ) ) == QGis::WKBPolygon && !geom->isGeosValid() )
1844+
if ( geom->type() == QGis::Polygon && !geom->isGeosValid() )
18451845
{
18461846
geom->fromGeos( GEOSBuffer( geom->asGeos(), 0, 0 ) );
18471847
}

0 commit comments

Comments
 (0)
Please sign in to comment.