Skip to content

Commit

Permalink
[FEATURE]: Adapt node tool to new geometry types and provide a node e…
Browse files Browse the repository at this point in the history
…ditor table
  • Loading branch information
mhugent committed Jul 9, 2015
1 parent 390b816 commit cc73f96
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/app/nodetool/qgsselectedfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ void QgsSelectedFeature::updateGeometry( QgsGeometry *geom )
if ( !geom )
{
QgsFeature f;
mVlayer->getFeatures( QgsFeatureRequest().setFilterFid( mFeatureId ) ).nextFeature( f );
mGeometry = new QgsGeometry( *f.geometry() );
if ( mVlayer->getFeatures( QgsFeatureRequest().setFilterFid( mFeatureId ) ).nextFeature( f ) )
{
mGeometry = new QgsGeometry( *f.geometry() );
}
}
else
{
Expand Down Expand Up @@ -301,9 +303,6 @@ void QgsSelectedFeature::deleteSelectedVertexes()

void QgsSelectedFeature::moveSelectedVertexes( const QgsVector &v )
{
//todo...

#if 0
int nUpdates = 0;
foreach ( QgsVertexEntry *entry, mVertexMap )
{
Expand Down Expand Up @@ -360,7 +359,6 @@ void QgsSelectedFeature::moveSelectedVertexes( const QgsVector &v )
endGeometryChange();

mVlayer->endEditCommand();
#endif //0
}

void QgsSelectedFeature::replaceVertexMap()
Expand Down

0 comments on commit cc73f96

Please sign in to comment.