Skip to content


[layout] Fix legend item properties' title entry not showing
Browse files Browse the repository at this point in the history
the default "Legend" title upon item creation.
  • Loading branch information
nirvn committed Sep 3, 2018
1 parent 199f4ef commit 5d3da0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/layout/qgslayoutitemlegend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ QgsLayoutItemLegend::QgsLayoutItemLegend( QgsLayout *layout )
connect( &layout->atlasComposition(), &QgsAtlasComposition::renderEnded, this, &QgsLayoutItemLegend::onAtlasEnded );

mTitle = mSettings.title();

// Connect to the main layertreeroot.
// It serves in "auto update mode" as a medium between the main app legend and this one
connect( mLayout->project()->layerTreeRoot(), &QgsLayerTreeNode::customPropertyChanged, this, &QgsLayoutItemLegend::nodeCustomPropertyChanged );
Expand Down

0 comments on commit 5d3da0d

Please sign in to comment.