Skip to content

Commit 326e58e

Browse files
author
mhugent
committed
applied patch from Juergen
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7145 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1b076b1 commit 326e58e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/legend/qgslegend.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,8 @@ bool QgsLegend::readXML(QDomNode& legendnode)
981981
//remove the whole legendlayer if this is the only legendlayerfile
982982
if(childelem.previousSibling().isNull() && childelem.nextSibling().isNull())
983983
{
984+
collapsed.remove(lastLayer);
985+
expanded.remove(lastLayer);
984986
delete lastLayer;
985987
}
986988
}

0 commit comments

Comments
 (0)