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.
1 parent 45d24c9 commit 78d2ee7Copy full SHA for 78d2ee7
src/core/qgsvectorlayer.cpp
@@ -3324,6 +3324,9 @@ bool QgsVectorLayer::addAttribute( const QgsField &field )
3324
if ( !isEditable() )
3325
return false;
3326
3327
+ if ( field.name().isEmpty() )
3328
+ return false;
3329
+
3330
for ( QgsFieldMap::const_iterator it = mUpdatedFields.begin(); it != mUpdatedFields.end(); it++ )
3331
{
3332
if ( it.value().name() == field.name() )
0 commit comments