Apply suggestions from code review

Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
This commit is contained in:
Germap 2025-06-16 21:03:35 -05:00 committed by Nyall Dawson
parent 9c9aa62fb4
commit a63fb03a02

View File

@ -1337,6 +1337,9 @@ QgsGeometry QgsGeometry::orientedMinimumBoundingBox( double &area, double &angle
{
mLastError.clear();
if ( isNull() )
return QgsGeometry();
if ( type() == Qgis::GeometryType::Point && d->geometry->partCount() == 1 )
{
area = 0;