mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-27 00:07:16 -05:00
Add check for empty geom in QgsGeos::closestPoint (#45627)
This commit is contained in:
parent
b56e86181c
commit
835f6d35f2
@ -2510,7 +2510,7 @@ QgsGeometry QgsGeos::mergeLines( QString *errorMsg ) const
|
||||
|
||||
QgsGeometry QgsGeos::closestPoint( const QgsGeometry &other, QString *errorMsg ) const
|
||||
{
|
||||
if ( !mGeos || isEmpty() || other.isNull() )
|
||||
if ( !mGeos || isEmpty() || other.isEmpty() )
|
||||
{
|
||||
return QgsGeometry();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user