mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Add missing 'm values' checkbox to create shapefile dialog
This commit is contained in:
parent
f290109964
commit
e6f6d49886
@ -167,8 +167,11 @@ QgsWkbTypes::Type QgsNewVectorLayerDialog::selectedType() const
|
|||||||
wkbType = static_cast<QgsWkbTypes::Type>
|
wkbType = static_cast<QgsWkbTypes::Type>
|
||||||
( mGeometryTypeBox->currentData( Qt::UserRole ).toInt() );
|
( mGeometryTypeBox->currentData( Qt::UserRole ).toInt() );
|
||||||
|
|
||||||
if ( mGeometryWithZCheckBox->isChecked() && wkbType != QgsWkbTypes::Unknown )
|
if ( mGeometryWithZCheckBox->isChecked() )
|
||||||
wkbType = QgsWkbTypes::to25D( wkbType );
|
wkbType = QgsWkbTypes::addZ( wkbType );
|
||||||
|
|
||||||
|
if ( mGeometryWithMCheckBox->isChecked() )
|
||||||
|
wkbType = QgsWkbTypes::addM( wkbType );
|
||||||
|
|
||||||
return wkbType;
|
return wkbType;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user