Navigation Menu

Skip to content

Commit

Permalink
applied patch from Juergen
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7145 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Aug 21, 2007
1 parent 1b076b1 commit 326e58e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/legend/qgslegend.cpp
Expand Up @@ -981,6 +981,8 @@ bool QgsLegend::readXML(QDomNode& legendnode)
//remove the whole legendlayer if this is the only legendlayerfile
if(childelem.previousSibling().isNull() && childelem.nextSibling().isNull())
{
collapsed.remove(lastLayer);
expanded.remove(lastLayer);
delete lastLayer;
}
}
Expand Down

0 comments on commit 326e58e

Please sign in to comment.