mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
Fix italic font when loading embedded layers from project. Fixes ticket #4207
This commit is contained in:
parent
2095c7ed4b
commit
3a595ac24a
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user