Skip to content

Commit

Permalink
Fixed a bug that caused a crash whenever a maplayer tries to access i…
Browse files Browse the repository at this point in the history
…ts legend item (for example when turning on or off editing)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4886 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
larsl committed Feb 20, 2006
1 parent b75ee65 commit 3b8feaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/legend/qgslegend.cpp
Expand Up @@ -886,6 +886,8 @@ bool QgsLegend::readXML(QDomNode& legendnode)
{
QgsMapLayer* theMapLayer = iter->second;
QgsLegendLayerFile* theLegendLayerFile = new QgsLegendLayerFile(lastLayerFileGroup, QgsLegendLayerFile::nameFromLayer(theMapLayer), theMapLayer);
theMapLayer->setLegendLayerFile(theLegendLayerFile);

//set the check state
blockSignals(true);
if(theMapLayer->visible())
Expand Down

0 comments on commit 3b8feaa

Please sign in to comment.