Skip to content

Commit 5d3da0d

Browse files
committed
[layout] Fix legend item properties' title entry not showing
the default "Legend" title upon item creation.
1 parent 199f4ef commit 5d3da0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/layout/qgslayoutitemlegend.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ QgsLayoutItemLegend::QgsLayoutItemLegend( QgsLayout *layout )
4242
connect( &layout->atlasComposition(), &QgsAtlasComposition::renderEnded, this, &QgsLayoutItemLegend::onAtlasEnded );
4343
#endif
4444

45+
mTitle = mSettings.title();
46+
4547
// Connect to the main layertreeroot.
4648
// It serves in "auto update mode" as a medium between the main app legend and this one
4749
connect( mLayout->project()->layerTreeRoot(), &QgsLayerTreeNode::customPropertyChanged, this, &QgsLayoutItemLegend::nodeCustomPropertyChanged );

0 commit comments

Comments
 (0)