Skip to content

Commit e6f6d49

Browse files
committed
Add missing 'm values' checkbox to create shapefile dialog
1 parent f290109 commit e6f6d49

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/gui/qgsnewvectorlayerdialog.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,11 @@ QgsWkbTypes::Type QgsNewVectorLayerDialog::selectedType() const
167167
wkbType = static_cast<QgsWkbTypes::Type>
168168
( mGeometryTypeBox->currentData( Qt::UserRole ).toInt() );
169169

170-
if ( mGeometryWithZCheckBox->isChecked() && wkbType != QgsWkbTypes::Unknown )
171-
wkbType = QgsWkbTypes::to25D( wkbType );
170+
if ( mGeometryWithZCheckBox->isChecked() )
171+
wkbType = QgsWkbTypes::addZ( wkbType );
172+
173+
if ( mGeometryWithMCheckBox->isChecked() )
174+
wkbType = QgsWkbTypes::addM( wkbType );
172175

173176
return wkbType;
174177
}

0 commit comments

Comments
 (0)