Skip to content

Commit

Permalink
Fix delete ring tool not updating rendered feature (fix #14741)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 29, 2016
1 parent ef51b70 commit 6c9bc93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/geometry/qgsgeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1525,8 +1525,9 @@ bool QgsGeometry::deleteRing( int ringNum, int partNum )
}

detach( true );

return QgsGeometryEditUtils::deleteRing( d->geometry, ringNum, partNum );
bool ok = QgsGeometryEditUtils::deleteRing( d->geometry, ringNum, partNum );
removeWkbGeos();
return ok;
}

bool QgsGeometry::deletePart( int partNum )
Expand Down Expand Up @@ -1677,6 +1678,7 @@ void QgsGeometry::mapToPixel( const QgsMapToPixel& mtp )
{
detach();
d->geometry->transform( mtp.transform() );
removeWkbGeos();
}
}

Expand Down

0 comments on commit 6c9bc93

Please sign in to comment.