Skip to content

Commit b6ad69d

Browse files
committed
show 'unkonwn'instead of '-1' in sublayers dialog (addresses #5844)
1 parent 50273b1 commit b6ad69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/ogr/qgsogrprovider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ QStringList QgsOgrProvider::subLayers() const
485485
default: geom = QString( "Unknown WKB: %1" ).arg( layerGeomType );
486486
}
487487

488-
mSubLayerList << QString( "%1:%2:%3:%4" ).arg( i ).arg( theLayerName ).arg( theLayerFeatureCount ).arg( geom );
488+
mSubLayerList << QString( "%1:%2:%3:%4" ).arg( i ).arg( theLayerName ).arg( theLayerFeatureCount == -1 ? tr( "Unknown" ) : QString::number( theLayerFeatureCount ) ).arg( geom );
489489
}
490490

491491
return mSubLayerList;

0 commit comments

Comments
 (0)