Skip to content
Permalink
Browse files

fix warning conversion QgsFeatureId to QString

  • Loading branch information
3nids authored and m-kuhn committed Oct 1, 2018
1 parent d4ac9a7 commit 29febc0c1f2bf605b7d72415680babeed304aa32
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsgeometryvalidationmodel.cpp
@@ -2,6 +2,7 @@

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

#include <QIcon>

@@ -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 );

0 comments on commit 29febc0

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