Skip to content

Commit

Permalink
Add missing HOLDGIL annotation for QgsGeometry::isEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and troopa81 committed Jun 12, 2024
1 parent 0e2bbac commit d4ddd04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Returns type of the geometry as a :py:class:`Qgis`.GeometryType
.. seealso:: :py:func:`wkbType`
%End

bool isEmpty() const;
bool isEmpty() const /HoldGIL/;
%Docstring
Returns ``True`` if the geometry is empty (eg a linestring with no vertices,
or a collection with no geometries). A null geometry will always
Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/geometry/qgsgeometry.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Returns type of the geometry as a :py:class:`Qgis`.GeometryType
.. seealso:: :py:func:`wkbType`
%End

bool isEmpty() const;
bool isEmpty() const /HoldGIL/;
%Docstring
Returns ``True`` if the geometry is empty (eg a linestring with no vertices,
or a collection with no geometries). A null geometry will always
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ class CORE_EXPORT QgsGeometry
* return TRUE for isEmpty().
* \see isNull()
*/
bool isEmpty() const;
bool isEmpty() const SIP_HOLDGIL;

//! Returns TRUE if WKB of the geometry is of WKBMulti* type
bool isMultipart() const SIP_HOLDGIL;
Expand Down

0 comments on commit d4ddd04

Please sign in to comment.