Skip to content

Commit

Permalink
Fix id loop
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Dec 10, 2020
1 parent 55869a0 commit b485049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgslayerdefinition.cpp
Expand Up @@ -93,7 +93,7 @@ bool QgsLayerDefinition::loadLayerDefinition( QDomDocument doc, QgsProject *proj
QDomNode treeLayerNode = treeLayerNodes.at( 0 );
for ( int i = 0; ! treeLayerNode.isNull(); ++i )
{
QDomNode treeLayerNode = treeLayerNodes.at( i );
treeLayerNode = treeLayerNodes.at( i );
QDomElement treeLayerElem = treeLayerNode.toElement();
QString oldid = treeLayerElem.attribute( QStringLiteral( "id" ) );
QString layername = treeLayerElem.attribute( QStringLiteral( "name" ) );
Expand All @@ -105,7 +105,7 @@ bool QgsLayerDefinition::loadLayerDefinition( QDomDocument doc, QgsProject *proj
QDomNode idnode = ids.at( 0 );
for ( int j = 0; ! idnode.isNull() ; ++j )
{
QDomNode idnode = ids.at( j );
idnode = ids.at( j );
QDomElement idElem = idnode.toElement();
if ( idElem.text() == oldid )
{
Expand Down

0 comments on commit b485049

Please sign in to comment.