Skip to content
Permalink
Browse files
Null is not empty
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 a7e1a99c787068d7a405ba22924b0719d975464b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsfield.cpp
@@ -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() );

0 comments on commit a7e1a99

Please sign in to comment.