diff --git a/python/PyQt6/core/auto_generated/geometry/qgsgeometry.sip.in b/python/PyQt6/core/auto_generated/geometry/qgsgeometry.sip.in index a3100f718881..8533371eb880 100644 --- a/python/PyQt6/core/auto_generated/geometry/qgsgeometry.sip.in +++ b/python/PyQt6/core/auto_generated/geometry/qgsgeometry.sip.in @@ -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 diff --git a/python/core/auto_generated/geometry/qgsgeometry.sip.in b/python/core/auto_generated/geometry/qgsgeometry.sip.in index a3100f718881..8533371eb880 100644 --- a/python/core/auto_generated/geometry/qgsgeometry.sip.in +++ b/python/core/auto_generated/geometry/qgsgeometry.sip.in @@ -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 diff --git a/src/core/geometry/qgsgeometry.h b/src/core/geometry/qgsgeometry.h index 8f5c37369060..8e5186b7a40b 100644 --- a/src/core/geometry/qgsgeometry.h +++ b/src/core/geometry/qgsgeometry.h @@ -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;