Skip to content

Commit

Permalink
Don't test imported rings for validity (fixes display of simplified p…
Browse files Browse the repository at this point in the history
…olygons)
  • Loading branch information
mhugent committed Jun 6, 2015
1 parent f3c781e commit 211d28b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/geometry/qgspolygonv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ bool QgsPolygonV2::fromWkb( const unsigned char* wkb )
{
QgsLineStringV2* line = new QgsLineStringV2();
line->fromWkbPoints( mWkbType, wkbPtr );
if ( !line->isRing() )
/*if ( !line->isRing() )
{
delete line; continue;
}
}*/

if ( !mExteriorRing )
{
Expand Down

1 comment on commit 211d28b

@nirvn
Copy link
Contributor

@nirvn nirvn commented on 211d28b Jun 7, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mhugent , this commit took care of the regression I raised here http://hub.qgis.org/issues/12896 . Thanks for the quick response.

Please sign in to comment.