We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50273b1 commit b6ad69dCopy full SHA for b6ad69d
src/providers/ogr/qgsogrprovider.cpp
@@ -485,7 +485,7 @@ QStringList QgsOgrProvider::subLayers() const
485
default: geom = QString( "Unknown WKB: %1" ).arg( layerGeomType );
486
}
487
488
- mSubLayerList << QString( "%1:%2:%3:%4" ).arg( i ).arg( theLayerName ).arg( theLayerFeatureCount ).arg( geom );
+ mSubLayerList << QString( "%1:%2:%3:%4" ).arg( i ).arg( theLayerName ).arg( theLayerFeatureCount == -1 ? tr( "Unknown" ) : QString::number( theLayerFeatureCount ) ).arg( geom );
489
490
491
return mSubLayerList;
0 commit comments