Skip to content
Permalink
Browse files

Virtual layer: Be case insensitive when looking for a layer name

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Mar 23, 2016
1 parent d87c381 commit f14bc8c4d9e88af5529c80593d73e4e9ba472a68
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/virtual/qgsvirtuallayerprovider.cpp
@@ -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;

0 comments on commit f14bc8c

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