Skip to content

Commit

Permalink
Fix crash when using project on multi point
Browse files Browse the repository at this point in the history
Fixes #45148
  • Loading branch information
elpaso authored and github-actions[bot] committed Sep 20, 2021
1 parent 0a5a8e7 commit 23412ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -4174,7 +4174,7 @@ static QVariant fcnProject( const QVariantList &values, const QgsExpressionConte
{
QgsGeometry geom = QgsExpressionUtils::getGeometry( values.at( 0 ), parent );

if ( geom.type() != QgsWkbTypes::PointGeometry )
if ( QgsWkbTypes::flatType( geom.wkbType() ) != QgsWkbTypes::Point )
{
parent->setEvalErrorString( QStringLiteral( "'project' requires a point geometry" ) );
return QVariant();
Expand Down

0 comments on commit 23412ff

Please sign in to comment.