Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Virtual layer: Be case insensitive when looking for a layer name
  • Loading branch information
Hugo Mercier committed Mar 23, 2016
1 parent d87c381 commit f14bc8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/virtual/qgsvirtuallayerprovider.cpp
Expand Up @@ -237,7 +237,7 @@ bool QgsVirtualLayerProvider::createIt()
continue;

const QgsVectorLayer* vl = static_cast<const QgsVectorLayer*>( l );
if ( ( vl->name() == tname ) || ( vl->name().toLower() == tname.toLower() ) || ( vl->id() == tname ) )
if (( vl->name() == tname ) || ( vl->name().toLower() == tname.toLower() ) || ( vl->id() == tname ) )
{
mDefinition.addSource( tname, vl->id() );
found = true;
Expand Down

0 comments on commit f14bc8c

Please sign in to comment.