Skip to content

Commit

Permalink
fix r10511
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10577 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 16, 2009
1 parent e2183a8 commit fdc93dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2191,7 +2191,7 @@ bool QgsVectorLayer::setDataProvider( QString const & provider )
reg.indexIn( name() );
QStringList stuff = reg.capturedTexts();
QString lName = stuff[1];
if ( lName.length() == 3 )
if ( stuff.size() == 3 )
{
const QMap<QString, QgsMapLayer*> &layers = QgsMapLayerRegistry::instance()->mapLayers();

Expand Down

0 comments on commit fdc93dc

Please sign in to comment.