Skip to content

Commit f14bc8c

Browse files
author
Hugo Mercier
committedMar 23, 2016
Virtual layer: Be case insensitive when looking for a layer name
1 parent d87c381 commit f14bc8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/virtual/qgsvirtuallayerprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ bool QgsVirtualLayerProvider::createIt()
237237
continue;
238238

239239
const QgsVectorLayer* vl = static_cast<const QgsVectorLayer*>( l );
240-
if ( ( vl->name() == tname ) || ( vl->name().toLower() == tname.toLower() ) || ( vl->id() == tname ) )
240+
if (( vl->name() == tname ) || ( vl->name().toLower() == tname.toLower() ) || ( vl->id() == tname ) )
241241
{
242242
mDefinition.addSource( tname, vl->id() );
243243
found = true;

0 commit comments

Comments
 (0)
Please sign in to comment.