Fix QgsGeometry documentation inaccuracy

This commit is contained in:
Mathieu Pellerin 2022-07-07 10:35:42 +07:00 committed by Nyall Dawson
parent 87a7073d75
commit a351a3e301
2 changed files with 5 additions and 2 deletions

View File

@ -142,10 +142,12 @@ Sets the underlying geometry store. Ownership of geometry is transferred.
bool isNull() const /HoldGIL/;
%Docstring
Returns ``True`` if the geometry is null (ie, contains no underlying geometry
accessible via :py:func:`~QgsGeometry.geometry` ).
accessible via :py:func:`~QgsGeometry.get` or :py:func:`~QgsGeometry.constGet` ).
.. seealso:: :py:func:`get`
.. seealso:: :py:func:`constGet`
.. seealso:: :py:func:`isEmpty`
.. versionadded:: 2.10

View File

@ -200,8 +200,9 @@ class CORE_EXPORT QgsGeometry
/**
* Returns TRUE if the geometry is null (ie, contains no underlying geometry
* accessible via geometry() ).
* accessible via get() or constGet() ).
* \see get
* \see constGet()
* \see isEmpty()
* \since QGIS 2.10
*/