We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
2 parents 7d9b8dd + be032f7 commit 39eaff9Copy full SHA for 39eaff9
src/app/qgisapp.cpp
@@ -5873,6 +5873,11 @@ void QgisApp::editPaste( QgsMapLayer *destinationLayer )
5873
// convert geometry to match destination layer
5874
QGis::GeometryType destType = pasteVectorLayer->geometryType();
5875
bool destIsMulti = QGis::isMultiType( pasteVectorLayer->wkbType() );
5876
+ if ( pasteVectorLayer->storageType() == "ESRI Shapefile" )
5877
+ {
5878
+ // force destination to multi if shapefile
5879
+ destIsMulti = true;
5880
+ }
5881
if ( destType != QGis::UnknownGeometry )
5882
{
5883
QgsGeometry* newGeometry = featureIt->geometry()->convertToType( destType, destIsMulti );
0 commit comments