Skip to content
Permalink
Browse files

Show NULL preview text in expression editor

Makes creating/debugging expressions easier for users
  • Loading branch information
nyalldawson committed Dec 26, 2016
1 parent 64f8b4d commit 1f37238de21927a9ac96ea44488bcc33377bbb96
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/qgsexpression.cpp
@@ -5905,6 +5905,10 @@ QString QgsExpression::formatPreviewString( const QVariant& value )
else
return tr( "<i>&lt;geometry: %1&gt;</i>" ).arg( QgsWkbTypes::displayString( geom.geometry()->wkbType() ) );
}
else if ( !value.isValid() )
{
return tr( "<i>NULL</i>" );
}
else if ( value.canConvert< QgsFeature >() )
{
//result is a feature

0 comments on commit 1f37238

Please sign in to comment.
You can’t perform that action at this time.