Skip to content
Permalink
Browse files
Avoid coverity null dereference after null check warning
  • Loading branch information
nyalldawson committed Mar 27, 2017
1 parent 7387d74 commit 1f927abe5ce4802c6d6cfdeaa16a2754876c4f9a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/geometry/qgstriangle.cpp
@@ -301,8 +301,8 @@ void QgsTriangle::setExteriorRing( QgsCurve *ring )
{
return;
}
QgsLineString *lineString = dynamic_cast< QgsLineString *>( ring );
if ( lineString && !lineString->isClosed() )
QgsLineString *lineString = static_cast< QgsLineString *>( ring );
if ( !lineString->isClosed() )
{
lineString->close();
}

0 comments on commit 1f927ab

Please sign in to comment.