Skip to content
Permalink
Browse files
fix #10672: force multi when pasting on a shapefile
  • Loading branch information
3nids committed Jun 23, 2014
1 parent 4c199ff commit be032f7
Showing 1 changed file with 5 additions and 0 deletions.
@@ -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 be032f7

Please sign in to comment.