Skip to content

Commit

Permalink
keep number of features of ogr provider up to date in case features a…
Browse files Browse the repository at this point in the history
…re added or deleted

git-svn-id: http://svn.osgeo.org/qgis/trunk@7198 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 15, 2007
1 parent 0a183c0 commit fbb9b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/ogr/qgsogrprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ bool QgsOgrProvider::addFeatures(QgsFeatureList & flist)

// flush features
ogrLayer->SyncToDisk();

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

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit fbb9b57

Please sign in to comment.