Skip to content

Commit

Permalink
fix warning conversion QgsFeatureId to QString
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and m-kuhn committed Oct 15, 2018
1 parent d4ac9a7 commit 29febc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsgeometryvalidationmodel.cpp
Expand Up @@ -2,6 +2,7 @@

#include "qgsvectorlayer.h"
#include "qgssinglegeometrycheck.h"
#include "qgsfeatureid.h"

#include <QIcon>

Expand Down Expand Up @@ -121,7 +122,7 @@ QVariant QgsGeometryValidationModel::data( const QModelIndex &index, int role )
mExpressionContext.setFeature( feature );
QString featureTitle = mDisplayExpression.evaluate( &mExpressionContext ).toString();
if ( featureTitle.isEmpty() )
featureTitle = featureItem.fid;
featureTitle = FID_TO_STRING( featureItem.fid );

if ( featureItem.errors.count() > 1 )
return tr( "%1: %n Errors", "", featureItem.errors.count() ).arg( featureTitle );
Expand Down

0 comments on commit 29febc0

Please sign in to comment.