Skip to content
Permalink
Browse files

Fixed crash when adding layer to a group (second part of #2073)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12067 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Nov 10, 2009
1 parent b215209 commit 21ae17579828c0cd1bae8ead282d9db238f19ffe
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/app/legend/qgslegendgroup.cpp
  2. +1 −1 src/app/legend/qgslegendgroup.h
@@ -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 )
{
@@ -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()
{
@@ -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*/

0 comments on commit 21ae175

Please sign in to comment.
You can’t perform that action at this time.