Skip to content

Commit b6142c8

Browse files
committed
[oracle] Fix incorrect feature count after adding features to layers
(cherry-picked from bbd335a)
1 parent befed4d commit b6142c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/providers/oracle/qgsoracleprovider.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,8 @@ bool QgsOracleProvider::addFeatures( QgsFeatureList &flist, QgsFeatureSink::Flag
13911391
}
13921392
}
13931393

1394-
mFeaturesCounted += flist.size();
1394+
if ( mFeaturesCounted >= 0 )
1395+
mFeaturesCounted += flist.size();
13951396
}
13961397
catch ( OracleException &e )
13971398
{

0 commit comments

Comments
 (0)