Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed crash when adding layer to a group (second part of #2073)
git-svn-id: http://svn.osgeo.org/qgis/trunk@12067 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Nov 10, 2009
1 parent 3570ad4 commit 145a9e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/legend/qgslegendgroup.cpp
Expand Up @@ -95,7 +95,7 @@ QgsLegendItem::DRAG_ACTION QgsLegendGroup::accept( const QgsLegendItem* li ) con
return NO_ACTION;
}

/*bool QgsLegendGroup::insert( QgsLegendItem* theItem )
bool QgsLegendGroup::insert( QgsLegendItem* theItem )
{
if ( theItem->type() == LEGEND_LAYER )
{
Expand All @@ -105,7 +105,7 @@ QgsLegendItem::DRAG_ACTION QgsLegendGroup::accept( const QgsLegendItem* li ) con
// XXX - mloskot - I don't know what to return
// but this function must return a value
return true;
}*/
}

std::list<QgsLegendLayer*> QgsLegendGroup::legendLayers()
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/legend/qgslegendgroup.h
Expand Up @@ -40,7 +40,7 @@ class QgsLegendGroup : public QgsLegendItem
QgsLegendItem::DRAG_ACTION accept( LEGEND_ITEM_TYPE type );
QgsLegendItem::DRAG_ACTION accept( const QgsLegendItem* li ) const;
bool isLeafNode();
//bool insert( QgsLegendItem* theItem );
bool insert( QgsLegendItem* theItem );
/**Returns all legend layers under this group*/
std::list<QgsLegendLayer*> legendLayers();
/**Goes through all the legendlayers and sets check state to checked/partially checked/unchecked*/
Expand Down

0 comments on commit 145a9e5

Please sign in to comment.