Skip to content
Permalink
Browse files
keep number of features of ogr provider up to date in case features a…
…re added or deleted

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7198 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 15, 2007
1 parent 3d72f7e commit 3e694a86d77d35306acea11f706c2de784ed2406
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/ogr/qgsogrprovider.cpp
@@ -688,7 +688,7 @@ bool QgsOgrProvider::addFeatures(QgsFeatureList & flist)

// flush features
ogrLayer->SyncToDisk();

numberFeatures = ogrLayer->GetFeatureCount(); //new feature count
return returnvalue;
}

@@ -872,7 +872,7 @@ bool QgsOgrProvider::deleteFeatures(const QgsFeatureIds & id)
QString layername=filename.section('.',0,0);
QString sql="REPACK " + layername;
ogrDataSource->ExecuteSQL(sql.toLocal8Bit().data(), NULL, NULL);

numberFeatures = ogrLayer->GetFeatureCount(); //new feature count
return returnvalue;
}

0 comments on commit 3e694a8

Please sign in to comment.