Skip to content

Commit bd3ced7

Browse files
author
jef
committedApr 16, 2009
fix r10511
git-svn-id: http://svn.osgeo.org/qgis/trunk@10577 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 616b62c commit bd3ced7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2191,7 +2191,7 @@ bool QgsVectorLayer::setDataProvider( QString const & provider )
21912191
reg.indexIn( name() );
21922192
QStringList stuff = reg.capturedTexts();
21932193
QString lName = stuff[1];
2194-
if ( lName.length() == 3 )
2194+
if ( stuff.size() == 3 )
21952195
{
21962196
const QMap<QString, QgsMapLayer*> &layers = QgsMapLayerRegistry::instance()->mapLayers();
21972197

0 commit comments

Comments
 (0)
Please sign in to comment.