Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix warning conversion QgsFeatureId to QString
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+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 ); |
|
|