Skip to content

Commit c9683cf

Browse files
committedMay 24, 2018
[oracle] Fix incorrect feature count after adding features to layers
(cherry-picked from b6142c8)
1 parent 644c71e commit c9683cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/providers/oracle/qgsoracleprovider.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,8 @@ bool QgsOracleProvider::addFeatures( QgsFeatureList &flist )
14571457
}
14581458
}
14591459

1460-
mFeaturesCounted += flist.size();
1460+
if ( mFeaturesCounted >= 0 )
1461+
mFeaturesCounted += flist.size();
14611462
}
14621463
catch ( OracleException &e )
14631464
{

0 commit comments

Comments
 (0)