mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Apply suggestions from code review
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
This commit is contained in:
parent
9c9aa62fb4
commit
a63fb03a02
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user