Skip to content

Commit

Permalink
fix PyQgsVectorLayer test
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 8, 2014
1 parent 9b01b2e commit f3eeed9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -2119,6 +2119,9 @@ QString QgsVectorLayer::attributeDisplayName( int attributeIndex ) const

bool QgsVectorLayer::deleteAttribute( int index )
{
if ( index < 0 || index >= pendingFields().count() )
return false;

if ( mUpdatedFields.fieldOrigin( index ) == QgsFields::OriginExpression )
{
removeExpressionField( index );
Expand Down

0 comments on commit f3eeed9

Please sign in to comment.