Skip to content
Permalink
Browse files

show 'unkonwn'instead of '-1' in sublayers dialog (addresses #5844)

  • Loading branch information
alexbruy committed Jun 23, 2012
1 parent 50273b1 commit b6ad69d12cc1e21e64cd667188d576cefb0b2ce9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -485,7 +485,7 @@ QStringList QgsOgrProvider::subLayers() const
default: geom = QString( "Unknown WKB: %1" ).arg( layerGeomType );
}

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

return mSubLayerList;

0 comments on commit b6ad69d

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