Skip to content
Permalink
Browse files

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

  • Loading branch information
marco
marco committed Aug 24, 2011
1 parent 2095c7e commit 3a595ac24a2c784563aba24035fe8846437b4db0
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/legend/qgslegend.cpp
@@ -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 )
{

0 comments on commit 3a595ac

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