Skip to content

Commit

Permalink
Fix QgsTriangle::fromWkb possibly not setting ring geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 4, 2017
1 parent e151f20 commit 4d51b3d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/geometry/qgstriangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,7 @@ bool QgsTriangle::fromWkb( QgsConstWkbPtr &wkbPtr )

QgsLineString *line = new QgsLineString();
line->fromWkbPoints( ringType, wkbPtr );
if ( !mExteriorRing )
{
mExteriorRing.reset( line );
}
mExteriorRing.reset( line );

return true;
}
Expand Down

0 comments on commit 4d51b3d

Please sign in to comment.