Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not include |layerid=X if the layer is not a collection (#4309)
  • Loading branch information
wonder-sk committed Oct 3, 2011
1 parent 5677103 commit 3350c9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -2467,7 +2467,9 @@ QGISEXTERN QgsDataItem * dataItem( QString thePath, QgsDataItem* parentItem )
path += "/" + name;
}

QString layerUri = thePath + "|layerid=" + QString::number( i );
QString layerUri = thePath;
if ( collection )
layerUri += "|layerid=" + QString::number( i );
QgsDebugMsg( "OGR layer uri : " + layerUri );

QgsOgrLayerItem * item = new QgsOgrLayerItem( collection ? collection : parentItem, name, path, layerUri, layerType );
Expand Down

0 comments on commit 3350c9c

Please sign in to comment.