Skip to content

Commit

Permalink
Fix italic font when loading embedded layers from project. Fixes ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
marco committed Aug 24, 2011
1 parent 2095c7e commit 3a595ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/legend/qgslegend.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 3a595ac

Please sign in to comment.