summaryrefslogtreecommitdiff
blob: b86d902e97ec41dac6c498f387ce1566a00baa0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- ogr/ogrsf_frmts/ili/ogrili2layer.cpp	2006-06-08 10:40:06.804746888 +0200
+++ /home/furai/extProjects/Gdal/gdal_unstable/ogr/ogrsf_frmts/ili/ogrili2layer.cpp	2006-06-08 10:35:53.648232528 +0200
@@ -73,7 +76,6 @@
     poFeatureDefn->SetGeomType( eReqType );
 
     bWriter = bWriterIn;
-    listFeatureIt = 0;
 }
 
 /************************************************************************/
@@ -116,6 +118,7 @@
 
 OGRErr OGRILI2Layer::SetFeature (OGRFeature *poFeature) {
     listFeature.push_back(poFeature);
+    if (listFeature.size() == 1) ResetReading();
     return OGRERR_NONE;
 }
 
@@ -132,7 +135,6 @@
 /************************************************************************/
 
 OGRFeature *OGRILI2Layer::GetNextFeature() {
-    if (listFeatureIt == 0) listFeatureIt = listFeature.begin();
     if (listFeatureIt != listFeature.end())
         return *(listFeatureIt++);
     return NULL;