Skip to content
Permalink
Browse files

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

(cherry picked from commit f14bc8c)
  • Loading branch information
Hugo Mercier
Hugo Mercier committed Mar 24, 2016
1 parent 1f57745 commit 8aa3ecd2ab9b73d7b936b1d8a9bd1b03cfbfcb47
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->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 8aa3ecd

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