Skip to content

Commit

Permalink
Null is not empty
Browse files Browse the repository at this point in the history
Co-authored-by: Loïc Bartoletti <lbartoletti@users.noreply.github.com>
  • Loading branch information
m-kuhn and lbartoletti committed Nov 19, 2021
1 parent 4b610b9 commit a7e1a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsfield.cpp
Expand Up @@ -262,7 +262,7 @@ QString QgsField::displayString( const QVariant &v ) const
if ( v.userType() == QMetaType::type( "QgsReferencedGeometry" ) )
{
QgsReferencedGeometry geom = qvariant_cast<QgsReferencedGeometry>( v );
if( geom.isEmpty() )
if( geom.isNull() )
return QgsApplication::nullRepresentation();
else
return QStringLiteral( "%1 [%2]" ).arg( geom.asWkt(), geom.crs().userFriendlyIdentifier() );
Expand Down

0 comments on commit a7e1a99

Please sign in to comment.