Skip to content
Permalink
Browse files
Merge pull request #1483 from 3nids/pasteshape
fix #10672: force multi when pasting on a shapefile
  • Loading branch information
wonder-sk committed Jun 25, 2014
2 parents 7d9b8dd + be032f7 commit 39eaff90975e533d0e71293511c5181f8ce7d0d2
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgisapp.cpp
@@ -5873,6 +5873,11 @@ void QgisApp::editPaste( QgsMapLayer *destinationLayer )
// convert geometry to match destination layer
QGis::GeometryType destType = pasteVectorLayer->geometryType();
bool destIsMulti = QGis::isMultiType( pasteVectorLayer->wkbType() );
if ( pasteVectorLayer->storageType() == "ESRI Shapefile" )
{
// force destination to multi if shapefile
destIsMulti = true;
}
if ( destType != QGis::UnknownGeometry )
{
QgsGeometry* newGeometry = featureIt->geometry()->convertToType( destType, destIsMulti );

0 comments on commit 39eaff9

Please sign in to comment.