Fix italic font when loading embedded layers from project. Fixes ticket #4207

This commit is contained in:
marco 2011-08-24 11:49:35 +02:00
parent 2095c7ed4b
commit 3a595ac24a

View File

@ -1253,6 +1253,13 @@ bool QgsLegend::readXML( QgsLegendGroup *parent, const QDomNode &node )
continue;
}
if ( currentLayer->layer() && !QgsProject::instance()->layerIsEmbedded( currentLayer->layer()->id() ).isEmpty() )
{
QFont itemFont;
itemFont.setItalic( true );
currentLayer->setFont( 0, itemFont );
}
// add to tree - either as a top-level node or a child of a group
if ( parent )
{