Skip to content
Permalink
Browse files

feature ids with negative numbers are used for uncommitted/newly adde…

…d features
  • Loading branch information
suricactus committed Jul 15, 2020
1 parent d14b349 commit 66b9f035d4c7d1eb3d5f50aa17e89d1360e8c11f
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/qgsfeatureid.h
@@ -21,7 +21,10 @@ email : matthias@opengis.ch

// feature id (currently 64 bit)

// 64 bit feature ids
/**
* 64 bit feature ids
* negative numbers are used for uncommitted/newly added features
**/
typedef qint64 QgsFeatureId SIP_SKIP;
#define FID_NULL std::numeric_limits<QgsFeatureId>::min()
#define FID_IS_NULL(fid) ( fid == std::numeric_limits<QgsFeatureId>::min() )

0 comments on commit 66b9f03

Please sign in to comment.
You can’t perform that action at this time.