Skip to content

Commit fdc93dc

Browse files
author
jef
committed
fix r10511
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10577 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e2183a8 commit fdc93dc

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)