Skip to content

Commit

Permalink
Consider avoid intersection settings when pasting features
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Mar 4, 2013
1 parent f91e79b commit e2bf9c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -5311,6 +5311,12 @@ void QgisApp::editPaste( QgsMapLayer *destinationLayer )
}

f.setAttributes( dstAttr );

//avoid intersection if enabled in digitize settings
if ( f.geometry() )
{
f.geometry()->avoidIntersections();
}
}

pasteVectorLayer->addFeatures( features );
Expand Down

0 comments on commit e2bf9c6

Please sign in to comment.