Skip to content
Permalink
Browse files

fix r15352

git-svn-id: http://svn.osgeo.org/qgis/trunk@15359 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Mar 6, 2011
1 parent 9e37bb3 commit 17d121750cd352b8d4f8457c25afa692d92fde89
Showing with 1 addition and 15 deletions.
  1. +1 −15 src/app/legend/qgslegend.cpp
@@ -799,29 +799,15 @@ void QgsLegend::setGroupCRS( QgsLegendGroup *lg, const QgsCoordinateReferenceSys
return;
}

//delete the legend layers first
QTreeWidgetItem * child = lg->child( 0 );
while ( child )
foreach( QgsLegendLayer *cl, lg->legendLayers() )
{
QgsLegendLayer *cl = dynamic_cast<QgsLegendLayer *>( child );
QgsLegendGroup *cg = dynamic_cast<QgsLegendGroup *>( child );

if ( cl )
{
cl->layer()->setCrs( crs );
}
else if ( cg )
{
setGroupCRS( cg, crs );
}

child = lg->child( 0 );
}

delete lg;
}


void QgsLegend::moveLayer( QgsMapLayer *ml, int groupIndex )
{
if ( !ml )

0 comments on commit 17d1217

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