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 be032f72a7932bacffa39a1fe95634a2d27aeb4f
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 be032f7

Please sign in to comment.